diff options
Diffstat (limited to 'deps/npm/man/man1')
-rw-r--r-- | deps/npm/man/man1/npm-exec.1 | 3 | ||||
-rw-r--r-- | deps/npm/man/man1/npm-ls.1 | 2 | ||||
-rw-r--r-- | deps/npm/man/man1/npm.1 | 2 | ||||
-rw-r--r-- | deps/npm/man/man1/npx.1 | 16 |
4 files changed, 13 insertions, 10 deletions
diff --git a/deps/npm/man/man1/npm-exec.1 b/deps/npm/man/man1/npm-exec.1 index 6048388fd6..17d436812e 100644 --- a/deps/npm/man/man1/npm-exec.1 +++ b/deps/npm/man/man1/npm-exec.1 @@ -53,7 +53,8 @@ to the following heuristic: .RS 0 .IP \(bu 2 If the package has a single entry in its \fBbin\fP field in \fBpackage\.json\fP, -then that command will be used\. +or if all entries are aliases of the same command, then that command +will be used\. .IP \(bu 2 If the package has multiple \fBbin\fP entries, and one of them matches the unscoped portion of the \fBname\fP field, then that command will be used\. diff --git a/deps/npm/man/man1/npm-ls.1 b/deps/npm/man/man1/npm-ls.1 index afa7913b74..67c5234ef4 100644 --- a/deps/npm/man/man1/npm-ls.1 +++ b/deps/npm/man/man1/npm-ls.1 @@ -22,7 +22,7 @@ For example, running \fBnpm ls promzard\fP in npm's source tree will show: .P .RS 2 .nf - npm@7\.0\.8 /path/to/npm + npm@7\.0\.11 /path/to/npm └─┬ init\-package\-json@0\.0\.4 └── promzard@0\.1\.5 .fi diff --git a/deps/npm/man/man1/npm.1 b/deps/npm/man/man1/npm.1 index 9197f45f0a..32e4a5b425 100644 --- a/deps/npm/man/man1/npm.1 +++ b/deps/npm/man/man1/npm.1 @@ -10,7 +10,7 @@ npm <command> [args] .RE .SS Version .P -7\.0\.8 +7\.0\.11 .SS Description .P npm is the package manager for the Node JavaScript platform\. It puts diff --git a/deps/npm/man/man1/npx.1 b/deps/npm/man/man1/npx.1 index 88b597de52..d87c4a946d 100644 --- a/deps/npm/man/man1/npx.1 +++ b/deps/npm/man/man1/npx.1 @@ -6,9 +6,9 @@ .RS 2 .nf npm exec \-\- <pkg>[@<version>] [args\.\.\.] -npm exec \-p <pkg>[@<version>] \-\- <cmd> [args\.\.\.] +npm exec \-\-package=<pkg>[@<version>] \-\- <cmd> [args\.\.\.] npm exec \-c '<cmd> [args\.\.\.]' -npm exec \-p foo \-c '<cmd> [args\.\.\.]' +npm exec \-\-package=foo \-c '<cmd> [args\.\.\.]' npx <pkg>[@<specifier>] [args\.\.\.] npx \-p <pkg>[@<specifier>] <cmd> [args\.\.\.] @@ -17,7 +17,8 @@ npx \-p <pkg>[@<specifier>] \-c '<cmd> [args\.\.\.]' alias: npm x, npx -\-p <pkg> \-\-package=<pkg> (may be specified multiple times) +\-\-package=<pkg> (may be specified multiple times) +\-p is a shorthand for \-\-package only when using npx executable \-c <cmd> \-\-call=<cmd> (may not be mixed with positional arguments) .fi .RE @@ -27,9 +28,9 @@ This command allows you to run an arbitrary command from an npm package (either one installed locally, or fetched remotely), in a similar context as running it via \fBnpm run\fP\|\. .P -Whatever packages are specified by the \fB\-\-package\fP or \fB\-p\fP option will be +Whatever packages are specified by the \fB\-\-package\fP option will be provided in the \fBPATH\fP of the executed command, along with any locally -installed package executables\. The \fB\-\-package\fP or \fB\-p\fP option may be +installed package executables\. The \fB\-\-package\fP option may be specified multiple times, to execute the supplied command in an environment where all specified packages are available\. .P @@ -45,14 +46,15 @@ only be considered a match if they have the exact same name and version as the local dependency\. .P If no \fB\-c\fP or \fB\-\-call\fP option is provided, then the positional arguments -are used to generate the command string\. If no \fB\-p\fP or \fB\-\-package\fP options +are used to generate the command string\. If no \fB\-\-package\fP options are provided, then npm will attempt to determine the executable name from the package specifier provided as the first positional argument according to the following heuristic: .RS 0 .IP \(bu 2 If the package has a single entry in its \fBbin\fP field in \fBpackage\.json\fP, -then that command will be used\. +or if all entries are aliases of the same command, then that command +will be used\. .IP \(bu 2 If the package has multiple \fBbin\fP entries, and one of them matches the unscoped portion of the \fBname\fP field, then that command will be used\. |