diff options
-rw-r--r-- | package.json | 2 | ||||
-rwxr-xr-x | scripts/resetdeps.sh | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/package.json b/package.json index f04ea57c8..058fcf7e0 100644 --- a/package.json +++ b/package.json @@ -231,7 +231,7 @@ "lint": "npm run eslint -- \"lib/**/*.js\"", "lintfix": "npm run lint -- --fix", "prelint": "rimraf test/npm_cache*", - "resetdeps": "rm -rf node_modules && git checkout node_modules && node . i --ignore-scripts --no-audit && node scripts/bundle-and-gitignore-deps.js" + "resetdeps": "bash scripts/resetdeps.sh" }, "//": [ "XXX temporarily only run unit tests while v7 beta is in progress", diff --git a/scripts/resetdeps.sh b/scripts/resetdeps.sh new file mode 100755 index 000000000..957987731 --- /dev/null +++ b/scripts/resetdeps.sh @@ -0,0 +1,8 @@ +#!/bin/bash +set -e +set -x +rm -rf node_modules +git checkout node_modules +node . i --ignore-scripts --no-audit +node . rebuild --ignore-scripts --no-audit +node scripts/bundle-and-gitignore-deps.js |