summaryrefslogtreecommitdiff
path: root/deps/npm/man/man7/scripts.7
diff options
context:
space:
mode:
authorRuy Adorno <ruyadorno@hotmail.com>2020-05-04 14:57:47 -0400
committerRichard Lau <riclau@uk.ibm.com>2020-07-13 14:22:40 -0400
commit84fca3c69112da306c41773d1ef9e2f0a42b4cb5 (patch)
treea1a51627b6f1a64c1557ce6419f7fd997bc3fc73 /deps/npm/man/man7/scripts.7
parent069b6e14a423f4f51aaaaf758d076e95526c5d98 (diff)
downloadnode-new-84fca3c69112da306c41773d1ef9e2f0a42b4cb5.tar.gz
deps: upgrade npm to 6.14.5
PR-URL: https://github.com/nodejs/node/pull/33239 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'deps/npm/man/man7/scripts.7')
-rw-r--r--deps/npm/man/man7/scripts.744
1 files changed, 29 insertions, 15 deletions
diff --git a/deps/npm/man/man7/scripts.7 b/deps/npm/man/man7/scripts.7
index 17b549b05e..f507049bc1 100644
--- a/deps/npm/man/man7/scripts.7
+++ b/deps/npm/man/man7/scripts.7
@@ -1,4 +1,4 @@
-.TH "SCRIPTS" "7" "March 2020" "" ""
+.TH "SCRIPTS" "7" "May 2020" "" ""
.SH "NAME"
\fBscripts\fR \- How npm handles the "scripts" field
.SS Description
@@ -194,9 +194,15 @@ executing the scripts\. So, if your package\.json has this:
.P
.RS 2
.nf
-{ "name" : "foo"
-, "dependencies" : { "bar" : "0\.1\.x" }
-, "scripts": { "start" : "bar \./test" } }
+{
+ "name" : "foo",
+ "dependencies" : {
+ "bar" : "0\.1\.x"
+ },
+ "scripts": {
+ "start" : "bar \./test"
+ }
+}
.fi
.RE
.P
@@ -224,9 +230,15 @@ if the package\.json has this:
.P
.RS 2
.nf
-{ "name" : "foo"
-, "config" : { "port" : "8080" }
-, "scripts" : { "start" : "node server\.js" } }
+{
+ "name" : "foo",
+ "config" : {
+ "port" : "8080"
+ },
+ "scripts" : {
+ "start" : "node server\.js"
+ }
+}
.fi
.RE
.P
@@ -267,10 +279,11 @@ For example, if your package\.json contains this:
.P
.RS 2
.nf
-{ "scripts" :
- { "install" : "scripts/install\.js"
- , "postinstall" : "scripts/postinstall\.js"
- , "uninstall" : "scripts/uninstall\.js"
+{
+ "scripts" : {
+ "install" : "scripts/install\.js",
+ "postinstall" : "scripts/install\.js",
+ "uninstall" : "scripts/uninstall\.js"
}
}
.fi
@@ -288,10 +301,11 @@ fine:
.P
.RS 2
.nf
-{ "scripts" :
- { "preinstall" : "\./configure"
- , "install" : "make && make install"
- , "test" : "make test"
+{
+ "scripts" : {
+ "preinstall" : "\./configure",
+ "install" : "make && make install",
+ "test" : "make test"
}
}
.fi