Windows compat in package.json scripts

Run dev-scripts/setup-storybook.sh using the `bash` executable,
not default shell.

('pre-commit' still doesn't work because of the funky env variable,
but I don't care)

Change-Id: Ibb0bfa0b6687248377ac72629c5642773d5d357f
This commit is contained in:
Bartosz Dziewoński 2020-10-17 00:25:55 +02:00
parent d8750377f3
commit 99568762e8

View file

@ -1,7 +1,7 @@
{ {
"private": true, "private": true,
"scripts": { "scripts": {
"start": "dev-scripts/setup-storybook.sh && start-storybook --quiet -p 6006", "start": "bash dev-scripts/setup-storybook.sh && start-storybook --quiet -p 6006",
"test": "npm -s run lint && tsc && npm -s run doc", "test": "npm -s run lint && tsc && npm -s run doc",
"test:size": "node ./tests/resource-loader-bundlesize.js", "test:size": "node ./tests/resource-loader-bundlesize.js",
"lint": "npm -s run lint:js && npm -s run lint:styles && npm -s run lint:i18n", "lint": "npm -s run lint:js && npm -s run lint:styles && npm -s run lint:i18n",
@ -12,7 +12,7 @@
"lint:i18n": "banana-checker --requireLowerCase=0 i18n/", "lint:i18n": "banana-checker --requireLowerCase=0 i18n/",
"selenium-test": "npm -s run test:size", "selenium-test": "npm -s run test:size",
"doc": "jsdoc -c jsdoc.json && npm run build-storybook", "doc": "jsdoc -c jsdoc.json && npm run build-storybook",
"build-storybook": "dev-scripts/setup-storybook.sh && build-storybook --quiet --loglevel warn -o docs/ui", "build-storybook": "bash dev-scripts/setup-storybook.sh && build-storybook --quiet --loglevel warn -o docs/ui",
"svgmin": "svgo --config=.svgo.yml -q -r -f resources/", "svgmin": "svgo --config=.svgo.yml -q -r -f resources/",
"pre-commit": "[ \"${PRE_COMMIT:-1}\" -eq 0 ] || npm -s t" "pre-commit": "[ \"${PRE_COMMIT:-1}\" -eq 0 ] || npm -s t"
}, },