Skip to content

Commit 4cf5c58

Browse files
committed
fix: restart flow server explicitly to avoid false errors from a lingering server
1 parent 3b8fa0a commit 4cf5c58

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@
3535
"test:watch": "cross-env NODE_ENV=test jest --watch --useStderr",
3636
"test:cover": "cross-env NODE_ENV=test jest --coverage --useStderr",
3737
"codecov": "npm run test:cover && cat ./coverage/lcov.info | codecov",
38-
"flow": "flow-typed install jest@22 && flow",
39-
"flow:watch": "watch 'flow' . --wait=1 --ignoreDirectoryPattern=/doc/",
38+
"flow": "flow stop; flow-typed install jest@22 && flow",
39+
"flow:watch": "flow stop; watch 'flow' . --wait=1 --ignoreDirectoryPattern=/doc/",
40+
"flow:stop": "flow stop",
4041
"lint": "eslint .",
4142
"lint:fix": "npm run lint -- --fix",
4243
"lint:watch": "watch 'npm run lint:fix' . --wait=1 --ignoreDirectoryPattern=/doc/",

0 commit comments

Comments
 (0)