From 966fec9bf383268bf56aaca6d26e41c4237e385e Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 18 Aug 2020 11:28:13 -0700 Subject: [PATCH] move resetdeps script to a bash script --- package.json | 2 +- scripts/resetdeps.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 scripts/resetdeps.sh diff --git a/package.json b/package.json index f04ea57c8dae6..058fcf7e08774 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 0000000000000..957987731d422 --- /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