From 505f005ee79f418847baf2322bfdcefdb470ef0c Mon Sep 17 00:00:00 2001 From: Duncan Betts Date: Mon, 23 Sep 2019 11:12:12 +0100 Subject: [PATCH 1/2] Add workaround to ensure `npm install` does not fail if ran repeatedly. Cannot solve actual issue without contribution to @purser/metamask, where this issue originates. Before creating this workaround, checked if fixed in metamask@2.4.1 (nope). --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 94e19d03d..7fc63f407 100644 --- a/package.json +++ b/package.json @@ -111,7 +111,8 @@ "cypress:open": "cypress open", "cypress:run": "cypress run", "storybook": "start-storybook -s ./public -p 6006", - "build-storybook": "build-storybook" + "build-storybook": "build-storybook", + "preinstall": "rm -rf node_modules/websocket/.git" }, "jest": { "collectCoverageFrom": [ From a1c0c07a84b63b27f5600a54a60f21ce708a8cb3 Mon Sep 17 00:00:00 2001 From: Duncan Betts Date: Mon, 23 Sep 2019 11:27:32 +0100 Subject: [PATCH 2/2] Add script to package.json that can be run if `npm install` fails. This is hack, but saves manually running this command when that happens. https://github.com/JoinColony/purser/issues/224 --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7fc63f407..7e519a5f7 100644 --- a/package.json +++ b/package.json @@ -112,7 +112,8 @@ "cypress:run": "cypress run", "storybook": "start-storybook -s ./public -p 6006", "build-storybook": "build-storybook", - "preinstall": "rm -rf node_modules/websocket/.git" + "preinstall": "rm -rf node_modules/websocket/.git", + "fix-websocket": "rm -rf node_modules/websocket/.git" }, "jest": { "collectCoverageFrom": [