summaryrefslogtreecommitdiff
path: root/deps/npm/man/man7/npm-scripts.7
diff options
context:
space:
mode:
authorKat Marchán <kzm@zkat.tech>2018-08-29 12:03:09 -0700
committerAnna Henningsen <anna@addaleax.net>2018-09-02 12:51:59 +0200
commit78f5685acc8fa574c32ed60d07de6273c60639b9 (patch)
treec3381e90e1c734763d98f079aad5d5f45438ca6d /deps/npm/man/man7/npm-scripts.7
parent1287e524eeba4632decce231da161426efb8fc34 (diff)
downloadandroid-node-v8-78f5685acc8fa574c32ed60d07de6273c60639b9.tar.gz
android-node-v8-78f5685acc8fa574c32ed60d07de6273c60639b9.tar.bz2
android-node-v8-78f5685acc8fa574c32ed60d07de6273c60639b9.zip
deps: upgrade npm to 6.4.1
PR-URL: https://github.com/nodejs/node/pull/22591 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'deps/npm/man/man7/npm-scripts.7')
-rw-r--r--deps/npm/man/man7/npm-scripts.76
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/npm/man/man7/npm-scripts.7 b/deps/npm/man/man7/npm-scripts.7
index f037b8dbad..3a7e80870a 100644
--- a/deps/npm/man/man7/npm-scripts.7
+++ b/deps/npm/man/man7/npm-scripts.7
@@ -1,4 +1,4 @@
-.TH "NPM\-SCRIPTS" "7" "July 2018" "" ""
+.TH "NPM\-SCRIPTS" "7" "August 2018" "" ""
.SH "NAME"
\fBnpm-scripts\fR \- How npm handles the "scripts" field
.SH DESCRIPTION
@@ -170,7 +170,9 @@ The package\.json fields are tacked onto the \fBnpm_package_\fP prefix\. So,
for instance, if you had \fB{"name":"foo", "version":"1\.2\.5"}\fP in your
package\.json file, then your package scripts would have the
\fBnpm_package_name\fP environment variable set to "foo", and the
-\fBnpm_package_version\fP set to "1\.2\.5"
+\fBnpm_package_version\fP set to "1\.2\.5"\. You can access these variables
+in your code with \fBprocess\.env\.npm_package_name\fP and
+\fBprocess\.env\.npm_package_version\fP, and so on for other fields\.
.SS configuration
.P
Configuration parameters are put in the environment with the