Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package.json2
-rwxr-xr-xscripts/resetdeps.sh8
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