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:
authorisaacs <i@izs.me>2020-08-18 21:28:13 +0300
committerisaacs <i@izs.me>2020-08-18 21:28:13 +0300
commit966fec9bf383268bf56aaca6d26e41c4237e385e (patch)
tree85f44cf0a4a56fd5caae79da245c4c6502449e6a /scripts/resetdeps.sh
parentb718b0e2844d9244cc63667f62ccf81864cc1092 (diff)
move resetdeps script to a bash script
Diffstat (limited to 'scripts/resetdeps.sh')
-rwxr-xr-xscripts/resetdeps.sh8
1 files changed, 8 insertions, 0 deletions
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