Skip to content

Commit 188b34d

Browse files
npm-cli-botRafaelGSS
authored andcommitted
deps: upgrade npm to 9.7.2
PR-URL: #48514 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
1 parent 97b00c3 commit 188b34d

File tree

298 files changed

+5385
-16299
lines changed

Some content is hidden

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

298 files changed

+5385
-16299
lines changed

β€Ždeps/npm/bin/node-gyp-bin/node-gyp

Lines changed: 0 additions & 6 deletions
This file was deleted.

β€Ždeps/npm/bin/node-gyp-bin/node-gyp.cmd

Lines changed: 0 additions & 5 deletions
This file was deleted.

β€Ždeps/npm/bin/npm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env bash
2+
3+
# This is used by the Node.js installer, which expects the cygwin/mingw
4+
# shell script to already be present in the npm dependency folder.
5+
26
(set -o igncr) 2>/dev/null && set -o igncr; # cygwin encoding fix
37

48
basedir=`dirname "$0"`
@@ -19,7 +23,6 @@ fi
1923
# kind of paths Node.js thinks it's using, typically win32 paths.
2024
CLI_BASEDIR="$("$NODE_EXE" -p 'require("path").dirname(process.execPath)')"
2125
NPM_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npm-cli.js"
22-
2326
NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g`
2427
if [ $? -ne 0 ]; then
2528
# if this didn't work, then everything else below will fail

β€Ždeps/npm/bin/npx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ if ! [ -x "$NODE_EXE" ]; then
1919
NODE_EXE=node
2020
fi
2121

22-
# these paths are passed to node.exe, so they need to match whatever
22+
# this path is passed to node.exe, so it needs to match whatever
2323
# kind of paths Node.js thinks it's using, typically win32 paths.
2424
CLI_BASEDIR="$("$NODE_EXE" -p 'require("path").dirname(process.execPath)')"
25+
NPM_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npm-cli.js"
26+
NPX_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npx-cli.js"
27+
NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g`
2528
if [ $? -ne 0 ]; then
2629
# if this didn't work, then everything else below will fail
2730
echo "Could not determine Node.js install directory" >&2
2831
exit 1
2932
fi
30-
NPM_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npm-cli.js"
31-
NPX_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npx-cli.js"
32-
NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g`
3333
NPM_PREFIX_NPX_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npx-cli.js"
3434

3535
# a path that will fail -f test on any posix bash

β€Ždeps/npm/bin/npx-cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const removed = new Set([
2424
...removedOpts,
2525
])
2626

27-
const { definitions, shorthands } = require('../lib/utils/config/index.js')
27+
const { definitions, shorthands } = require('@npmcli/config/lib/definitions')
2828
const npmSwitches = Object.entries(definitions)
2929
.filter(([key, { type }]) => type === Boolean ||
3030
(Array.isArray(type) && type.includes(Boolean)))

β€Ždeps/npm/docs/content/commands/npm-install-test.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,22 @@ will also prevent _writing_ `package-lock.json` if `save` is true.
160160

161161

162162

163+
#### `package-lock-only`
164+
165+
* Default: false
166+
* Type: Boolean
167+
168+
If set to true, the current operation will only use the `package-lock.json`,
169+
ignoring `node_modules`.
170+
171+
For `update` this means only the `package-lock.json` will be updated,
172+
instead of checking `node_modules` and downloading dependencies.
173+
174+
For `list` this means the output will be based on the tree described by the
175+
`package-lock.json`, rather than the contents of `node_modules`.
176+
177+
178+
163179
#### `foreground-scripts`
164180

165181
* Default: false

β€Ždeps/npm/docs/content/commands/npm-install.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,22 @@ will also prevent _writing_ `package-lock.json` if `save` is true.
550550
551551
552552
553+
#### `package-lock-only`
554+
555+
* Default: false
556+
* Type: Boolean
557+
558+
If set to true, the current operation will only use the `package-lock.json`,
559+
ignoring `node_modules`.
560+
561+
For `update` this means only the `package-lock.json` will be updated,
562+
instead of checking `node_modules` and downloading dependencies.
563+
564+
For `list` this means the output will be based on the tree described by the
565+
`package-lock.json`, rather than the contents of `node_modules`.
566+
567+
568+
553569
#### `foreground-scripts`
554570
555571
* Default: false

β€Ždeps/npm/docs/content/commands/npm-ls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ packages will *also* show the paths to the specified packages. For
2727
example, running `npm ls promzard` in npm's source tree will show:
2828

2929
```bash
30-
npm@9.7.1 /path/to/npm
30+
npm@9.7.2 /path/to/npm
3131
└─┬ init-package-json@0.0.4
3232
└── promzard@0.1.5
3333
```

β€Ždeps/npm/docs/content/commands/npm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Note: This command is unaware of workspaces.
1414

1515
### Version
1616

17-
9.7.1
17+
9.7.2
1818

1919
### Description
2020

β€Ždeps/npm/docs/content/configuring-npm/package-json.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,6 @@ it will. The `.npmignore` file works just like a `.gitignore`. If there is
279279
a `.gitignore` file, and `.npmignore` is missing, `.gitignore`'s contents
280280
will be used instead.
281281

282-
Files included with the "package.json#files" field _cannot_ be excluded
283-
through `.npmignore` or `.gitignore`.
284-
285282
Certain files are always included, regardless of settings:
286283

287284
* `package.json`

0 commit comments

Comments
Β (0)