Skip to content

Commit 3961e7f

Browse files
authored
Merge pull request #149 from rsocket/feature/scripts-support-windows
fix: update scripts to support windows
2 parents 97ab802 + 002c6d3 commit 3961e7f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,19 @@
1717
],
1818
"scripts": {
1919
"build": "cross-env NODE_ENV=production node ./scripts/build.js",
20-
"jest": "cross-env NODE_ENV=test jest \"$@\"",
20+
"jest": "cross-env NODE_ENV=test jest",
2121
"lint": "yarn run lint-prettier && eslint . --cache",
2222
"lint-prettier": "node ./scripts/prettier.js lint",
2323
"prettier": "node ./scripts/prettier.js write && eslint . --cache --fix",
2424
"tck": "yarn run build && node ./packages/rsocket-tck/build/index.js \"$@\"",
2525
"simple-cli": "yarn run build && node ./packages/rsocket-examples/build/SimpleCli.js \"$@\"",
2626
"resume-example": "yarn run build && node ./packages/rsocket-examples/build/ResumeExample.js",
2727
"lease-client-example": "yarn run build && node ./packages/rsocket-examples/build/LeaseClientExample.js \"$@\"",
28-
"test": "f() { EXIT=0; yarn run typecheck || EXIT=$?; yarn run jest \"$@\" || EXIT=$?; exit $EXIT; }; f",
29-
"typecheck": "flow check ./packages/"
28+
"pretest": "yarn run typecheck",
29+
"test": "yarn run jest",
30+
"pretypecheck": "yarn run flow-version",
31+
"typecheck": "flow check packages",
32+
"flow-version": "flow --version"
3033
},
3134
"workspaces": [
3235
"packages/*"

0 commit comments

Comments
 (0)