Skip to content

Commit 46ce505

Browse files
authored
feat: update package.json scripts to work on windows (#216)
* feat: add npm-run-all and fix test:web script * fix: remove test script extra option * fix: update lint script revert test script and remove npm-run-all * chore: revert to linux/mac specific script * fix: prepend node command so it works on windows
1 parent ca44ce3 commit 46ce505

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"test_build": "rollup -c",
1616
"test": "yarn test:node && yarn test:web",
1717
"test:node": "jest",
18-
"test:web": "./node_modules/karma/bin/karma start karma.conf.js --auto-watch",
18+
"test:web": "node ./node_modules/karma/bin/karma start karma.conf.js --auto-watch",
1919
"test:build": "cd ./scripts && jest check-build.test.js",
2020
"test:build:web": "node ./scripts/proxy-browser-test.js",
2121
"watch:test": "jest --watch",

scripts/proxy-browser-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const stop = () => {
3434
if (!process.env.CI) {
3535
start();
3636
require('child_process').execSync(
37-
'./node_modules/karma/bin/karma start ./scripts/karma.conf.js',
37+
'node ./node_modules/karma/bin/karma start ./scripts/karma.conf.js',
3838
{ stdio: [0, 1, 2] }
3939
);
4040
stop();

0 commit comments

Comments
 (0)