From a2d785398c7157ebfcddf5ecf7480c170d7a81fa Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Wed, 10 Oct 2018 13:50:54 -0700 Subject: [PATCH] fix: restart flow server explicitly to avoid false errors from a lingering server --- web3.js/package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web3.js/package.json b/web3.js/package.json index 6f0f2f9e16..86f36ab7a6 100644 --- a/web3.js/package.json +++ b/web3.js/package.json @@ -35,8 +35,9 @@ "test:watch": "cross-env NODE_ENV=test jest --watch --useStderr", "test:cover": "cross-env NODE_ENV=test jest --coverage --useStderr", "codecov": "npm run test:cover && cat ./coverage/lcov.info | codecov", - "flow": "flow-typed install jest@22 && flow", - "flow:watch": "watch 'flow' . --wait=1 --ignoreDirectoryPattern=/doc/", + "flow": "flow stop; flow-typed install jest@22 && flow", + "flow:watch": "flow stop; watch 'flow' . --wait=1 --ignoreDirectoryPattern=/doc/", + "flow:stop": "flow stop", "lint": "eslint .", "lint:fix": "npm run lint -- --fix", "lint:watch": "watch 'npm run lint:fix' . --wait=1 --ignoreDirectoryPattern=/doc/",