summaryrefslogtreecommitdiff
path: root/deps/npm/man/man1/npm-shrinkwrap.1
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/man/man1/npm-shrinkwrap.1')
-rw-r--r--deps/npm/man/man1/npm-shrinkwrap.115
1 files changed, 15 insertions, 0 deletions
diff --git a/deps/npm/man/man1/npm-shrinkwrap.1 b/deps/npm/man/man1/npm-shrinkwrap.1
index f00ca28e82..fbb2c67da7 100644
--- a/deps/npm/man/man1/npm-shrinkwrap.1
+++ b/deps/npm/man/man1/npm-shrinkwrap.1
@@ -142,6 +142,17 @@ resolution using "version" if one isn't\.
The tree is walked and any missing dependencies are installed in the usual fashion\.
.RE
+.P
+If \fBpreshrinkwrap\fP, \fBshrinkwrap\fP or \fBpostshrinkwrap\fP are in the \fBscripts\fP property of the
+\fBpackage\.json\fP, they will be executed by running \fBnpm shrinkwrap\fP\|\.
+\fBpreshrinkwrap\fP and \fBshrinkwrap\fP are executed before the shrinkwrap, \fBpostshrinkwrap\fP is
+executed afterwards\. For example to run some postprocessing on the generated file:
+.P
+.RS 2
+.nf
+"scripts": { "postshrinkwrap": "node fix\-shrinkwrap\.js" }
+.fi
+.RE
.SS Using shrinkwrapped packages
.P
Using a shrinkwrapped package is no different than using any other
@@ -216,6 +227,10 @@ contents rather than versions\.
.IP \(bu 2
npm help install
.IP \(bu 2
+npm help run\-script
+.IP \(bu 2
+npm help 7 scripts
+.IP \(bu 2
npm help 5 package\.json
.IP \(bu 2
npm help ls