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:
-rwxr-xr-xscripts/dep-update6
-rwxr-xr-xscripts/dev-dep-update6
2 files changed, 12 insertions, 0 deletions
diff --git a/scripts/dep-update b/scripts/dep-update
new file mode 100755
index 000000000..a0aaed7db
--- /dev/null
+++ b/scripts/dep-update
@@ -0,0 +1,6 @@
+#!/bin/bash
+node . install --save $1@$2 &&\
+git add node_modules/$1/ package.json &&\
+git commit -m"$1@$2" &&\
+node . repo $1 &&\
+git commit --amend
diff --git a/scripts/dev-dep-update b/scripts/dev-dep-update
new file mode 100755
index 000000000..6058cce94
--- /dev/null
+++ b/scripts/dev-dep-update
@@ -0,0 +1,6 @@
+#!/bin/bash
+node . install --save --save-dev $1@$2 &&\
+git add package.json &&\
+git commit -m"$1@$2" &&\
+node . repo $1 &&\
+git commit --amend