Skip to content

Commit 25a816d

Browse files
FallenRiteMonkMylesBorins
authored andcommitted
deps: upgrade npm to 5.8.0
PR-URL: #19560 Fixes: #19271 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
1 parent b29c36b commit 25a816d

File tree

1,451 files changed

+43796
-23927
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,451 files changed

+43796
-23927
lines changed

deps/npm/.github/issue_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- [ ] npm is crashing.
44
- [ ] npm is producing an incorrect install.
55
- [ ] npm is doing something I don't understand.
6+
- [ ] npm is producing incorrect or undesirable behavior.
67
- [ ] Other (_see below for feature requests_):
78

89
#### What's going wrong?

deps/npm/AUTHORS

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,3 +536,28 @@ Jacob Wejendorp <jacob@wejendorp.dk>
536536
Alejandro López <a.lopez.sanchez@outlook.es>
537537
Victor Belozyorov <hi@vbelozyorov.com>
538538
Bradley Farias <bfarias@godaddy.com>
539+
Kyle E. Mitchell <kyle@kemitchell.com>
540+
Tuan Anh Tran <me@tuananh.org>
541+
Nathan Woltman <nwoltman@outlook.com>
542+
Kyra <kyranet@users.noreply.github.com>
543+
Leаh Neukirchen <chneukirchen@gmail.com>
544+
Kyle Spier-Swenson <kyleshome@gmail.com>
545+
Joe Bowbeer <joe.bowbeer@gmail.com>
546+
Nalin Bhardwaj <6984346+nalinbhardwaj@users.noreply.github.com>
547+
Nicolas Garnier <ngarnier@users.noreply.github.com>
548+
Vladislav Rassokhin <vladrassokhin@gmail.com>
549+
Josh Goldberg <joshuakgoldberg@outlook.com>
550+
laggingreflex <laggingreflex@gmail.com>
551+
Kristofer Selbekk <selbekk@users.noreply.github.com>
552+
sreenivas alapati <sreenivas9alapati@gmail.com>
553+
Ben Creasy <ben@bencreasy.com>
554+
Allan Kimmer Jensen <allankimmerjensen@gmail.com>
555+
rinfan <rinfan@users.noreply.github.com>
556+
Matt Hoyle <code@deployable.co>
557+
Mason Pawsey <mpawsey@csub.edu>
558+
Johannes Bader <olydis@users.noreply.github.com>
559+
Michael Zabka <zabka.michael@gmail.com>
560+
Bruce MacNaughton <bmacnaughton@gmail.com>
561+
Christopher Patty <christopher.patty@aggiemail.usu.edu>
562+
Max Stoiber <contact@mxstbr.com>
563+
Enrico Weigelt <enrico.weigelt@gr13.net>

deps/npm/CHANGELOG.md

Lines changed: 447 additions & 6 deletions
Large diffs are not rendered by default.

deps/npm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ dev: install
6565
link: uninstall
6666
node bin/npm-cli.js link -f
6767

68-
clean: markedclean marked-manclean doc-clean uninstall
68+
clean: markedclean marked-manclean doc-clean
6969
rm -rf npmrc
7070
node bin/npm-cli.js cache clean
7171

deps/npm/bin/npx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,19 @@ if ! [ -x "$NODE_EXE" ]; then
1212
NODE_EXE=node
1313
fi
1414

15+
NPM_CLI_JS="$basedir/node_modules/npm/bin/npm-cli.js"
1516
NPX_CLI_JS="$basedir/node_modules/npm/bin/npx-cli.js"
1617

1718
case `uname` in
1819
*MINGW*)
19-
NPM_PREFIX=`"$NODE_EXE" "$NPX_CLI_JS" prefix -g`
20+
NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g`
2021
NPM_PREFIX_NPX_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npx-cli.js"
2122
if [ -f "$NPM_PREFIX_NPX_CLI_JS" ]; then
2223
NPX_CLI_JS="$NPM_PREFIX_NPX_CLI_JS"
2324
fi
2425
;;
2526
*CYGWIN*)
26-
NPM_PREFIX=`"$NODE_EXE" "$NPX_CLI_JS" prefix -g`
27+
NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g`
2728
NPM_PREFIX_NPX_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npx-cli.js"
2829
if [ -f "$NPM_PREFIX_NPX_CLI_JS" ]; then
2930
NPX_CLI_JS="$NPM_PREFIX_NPX_CLI_JS"

deps/npm/bin/npx.cmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ IF NOT EXIST "%NODE_EXE%" (
88
SET "NODE_EXE=node"
99
)
1010

11+
SET "NPM_CLI_JS=%~dp0\node_modules\npm\bin\npm-cli.js"
1112
SET "NPX_CLI_JS=%~dp0\node_modules\npm\bin\npx-cli.js"
12-
FOR /F "delims=" %%F IN ('CALL "%NODE_EXE%" "%NPX_CLI_JS%" prefix -g') DO (
13+
FOR /F "delims=" %%F IN ('CALL "%NODE_EXE%" "%NPM_CLI_JS%" prefix -g') DO (
1314
SET "NPM_PREFIX_NPX_CLI_JS=%%F\node_modules\npm\bin\npx-cli.js"
1415
)
1516
IF EXIST "%NPM_PREFIX_NPX_CLI_JS%" (

deps/npm/doc/cli/npm-ci.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
npm-ci(1) -- Install a project with a clean slate
2+
===================================
3+
4+
## SYNOPSIS
5+
6+
npm ci
7+
8+
## EXAMPLE
9+
10+
Make sure you have a package-lock and an up-to-date install:
11+
12+
```
13+
$ cd ./my/npm/project
14+
$ npm install
15+
added 154 packages in 10s
16+
$ ls | grep package-lock
17+
```
18+
19+
Run `npm ci` in that project
20+
21+
```
22+
$ npm ci
23+
added 154 packages in 5s
24+
```
25+
26+
Configure Travis to build using `npm ci` instead of `npm install`:
27+
28+
```
29+
# .travis.yml
30+
install:
31+
- npm ci
32+
# keep the npm cache around to speed up installs
33+
cache:
34+
directories:
35+
- "$HOME/.npm"
36+
```
37+
38+
## DESCRIPTION
39+
40+
This command is similar to `npm-install(1)`, except it's meant to be used in
41+
automated environments such as test platforms, continuous integration, and
42+
deployment. It can be significantly faster than a regular npm install by
43+
skipping certain user-oriented features. It is also more strict than a regular
44+
install, which can help catch errors or inconsistencies caused by the
45+
incrementally-installed local environments of most npm users.
46+
47+
In short, the main differences between using `npm install` and `npm ci` are:
48+
49+
* The project **must** have an existing `package-lock.json` or `npm-shrinkwrap.json`.
50+
* If dependencies in the package lock do not match those in `package.json`, `npm ci` will exit with an error, instead of updating the package lock.
51+
* `npm ci` can only install entire projects at a time: individual dependencies cannot be added with this command.
52+
* If a `node_modules` is already present, it will be automatically removed before `npm ci` begins its install.
53+
* It will never write to `package.json` or any of the package-locks: installs are essentially frozen.
54+
55+
## SEE ALSO
56+
57+
* npm-install(1)
58+
* npm-package-locks(5)

deps/npm/doc/cli/npm-install.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ after packing it up into a tarball (b).
5555
is set to `production`), npm will not install modules listed in
5656
`devDependencies`.
5757

58+
> NOTE: The `--production` flag has no particular meaning when adding a
59+
dependency to a project.
60+
5861
* `npm install <folder>`:
5962

6063
Install the package in the directory as a symlink in the current project.
@@ -347,7 +350,8 @@ The `--no-shrinkwrap` argument, which will ignore an available
347350
package lock or shrinkwrap file and use the package.json instead.
348351

349352
The `--no-package-lock` argument will prevent npm from creating a
350-
`package-lock.json` file.
353+
`package-lock.json` file. When running with package-lock's disabled npm
354+
will not automatically prune your node modules when installing.
351355

352356
The `--nodedir=/path/to/node/source` argument will allow npm to find the
353357
node source code so that npm can compile native modules.

deps/npm/doc/cli/npm-ls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Max display depth of the dependency tree.
7676

7777
Display only the dependency tree for packages in `dependencies`.
7878

79-
### dev
79+
### dev / development
8080

8181
* Type: Boolean
8282
* Default: false

deps/npm/doc/cli/npm-prune.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ npm-prune(1) -- Remove extraneous packages
33

44
## SYNOPSIS
55

6-
npm prune [[<@scope>/]<pkg>...] [--production]
6+
npm prune [[<@scope>/]<pkg>...] [--production] [--dry-run] [--json]
77

88
## DESCRIPTION
99

@@ -16,9 +16,21 @@ package's dependencies list.
1616

1717
If the `--production` flag is specified or the `NODE_ENV` environment
1818
variable is set to `production`, this command will remove the packages
19-
specified in your `devDependencies`. Setting `--production=false` will
19+
specified in your `devDependencies`. Setting `--no-production` will
2020
negate `NODE_ENV` being set to `production`.
2121

22+
If the `--dry-run` flag is used then no changes will actually be made.
23+
24+
If the `--json` flag is used then the changes `npm prune` made (or would
25+
have made with `--dry-run`) are printed as a JSON object.
26+
27+
In normal operation with package-locks enabled, extraneous modules are
28+
pruned automatically when modules are installed and you'll only need
29+
this command with the `--production` flag.
30+
31+
If you've disabled package-locks then extraneous modules will not be removed
32+
and it's up to you to run `npm prune` from time-to-time to remove them.
33+
2234
## SEE ALSO
2335

2436
* npm-uninstall(1)

0 commit comments

Comments
 (0)