Skip to content

Commit 68ec1e5

Browse files
npm-cli-bottargos
authored andcommitted
deps: upgrade npm to 10.2.3
PR-URL: #50531 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
1 parent 6e0f0fa commit 68ec1e5

File tree

556 files changed

+6990
-44431
lines changed

Some content is hidden

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

556 files changed

+6990
-44431
lines changed

deps/npm/bin/node-gyp-bin/node-gyp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env sh
2+
if [ "x$npm_config_node_gyp" = "x" ]; then
3+
node "`dirname "$0"`/../../node_modules/node-gyp/bin/node-gyp.js" "$@"
4+
else
5+
"$npm_config_node_gyp" "$@"
6+
fi
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
if not defined npm_config_node_gyp (
2+
node "%~dp0\..\..\node_modules\node-gyp\bin\node-gyp.js" %*
3+
) else (
4+
node "%npm_config_node_gyp%" %*
5+
)

deps/npm/docs/content/commands/npm-audit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ The `sig` is generated using the following template: `${package.name}@${package.
8383

8484
Keys response:
8585

86-
- `expires`: null or a simplified extended <a href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 format</a>: `YYYY-MM-DDTHH:mm:ss.sssZ`
86+
- `expires`: null or a simplified extended [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601"): `YYYY-MM-DDTHH:mm:ss.sssZ`
8787
- `keydid`: sha256 fingerprint of the public key
8888
- `keytype`: only `ecdsa-sha2-nistp256` is currently supported by the npm CLI
8989
- `scheme`: only `ecdsa-sha2-nistp256` is currently supported by the npm CLI
9090
- `key`: base64 encoded public key
9191

92-
See this <a href="https://registry.npmjs.org/-/npm/v1/keys" target="_blank">example key's response from the public npm registry</a>.
92+
See this [example key's response from the public npm registry](https://registry.npmjs.org/-/npm/v1/keys").
9393

9494
### Audit Endpoints
9595

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-
[email protected].0 /path/to/npm
30+
[email protected].3 /path/to/npm
3131
3232
3333
```

deps/npm/docs/content/commands/npm-rebuild.md

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,29 @@ alias: rb
1414

1515
### Description
1616

17-
This command runs the `npm build` command on the matched folders. This is
18-
useful when you install a new version of node, and must recompile all your
19-
C++ addons with the new binary. It is also useful when installing with
20-
`--ignore-scripts` and `--no-bin-links`, to explicitly choose which
21-
packages to build and/or link bins.
22-
23-
If one or more package specs are provided, then only packages with a
24-
name and version matching one of the specifiers will be rebuilt.
17+
This command does the following:
18+
19+
1. Execute lifecycle scripts (`preinstall`, `install`, `postinstall`, `prepare`)
20+
2. Links bins depending on whether bin links are enabled
21+
22+
This command is particularly useful in scenarios including but not limited to:
23+
24+
1. Installing a new version of **node.js**, where you need to recompile all your C++ add-ons with the updated binary.
25+
2. Installing with `--ignore-scripts` and `--no-bin-links`, to explicitly choose which packages to build and/or link bins.
26+
27+
If one or more package specs are provided, then only packages with a name and version matching one of the specifiers will be rebuilt.
28+
29+
Usually, you should not need to run `npm rebuild` as it is already done for you as part of npm install (unless you suppressed these steps with `--ignore-scripts` or `--no-bin-links`).
30+
31+
If there is a `binding.gyp` file in the root of your package, then npm will use a default install hook:
32+
33+
```
34+
"scripts": {
35+
"install": "node-gyp rebuild"
36+
}
37+
```
38+
39+
This default behavior is suppressed if the `package.json` has its own `install` or `preinstall` scripts. It is also suppressed if the package specifies `"gypfile": false`
2540

2641
### Configuration
2742

deps/npm/docs/content/commands/npm-team.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ on your `authtype`.
3333

3434
* create / destroy:
3535
Create a new team, or destroy an existing one. Note: You cannot remove the
36-
`developers` team, <a href="https://docs.npmjs.com/about-developers-team" target="_blank">learn more.</a>
36+
`developers` team, [learn more.](https://docs.npmjs.com/about-developers-team)
3737

3838
Here's how to create a new team `newteam` under the `org` org:
3939

deps/npm/docs/content/commands/npm-unpublish.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ description: Remove a package from the registry
1010
npm unpublish [<package-spec>]
1111
```
1212

13-
To learn more about how the npm registry treats unpublish, see our <a
14-
href="https://docs.npmjs.com/policies/unpublish" target="_blank"
15-
rel="noopener noreferrer"> unpublish policies</a>
13+
To learn more about how the npm registry treats unpublish, see our
14+
[unpublish policies](https://docs.npmjs.com/policies/unpublish).
1615

1716
### Warning
1817

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-
10.2.0
17+
10.2.3
1818

1919
### Description
2020

deps/npm/docs/content/configuring-npm/package-lock-json.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ the npm registry. Lockfiles generated by npm v7 will contain
114114
* `1`: The lockfile version used by npm v5 and v6.
115115
* `2`: The lockfile version used by npm v7 and v8. Backwards compatible to v1
116116
lockfiles.
117-
* `3`: The lockfile version used by npm v9. Backwards compatible to npm v7.
117+
* `3`: The lockfile version used by npm v9 and above. Backwards compatible to npm v7.
118118

119119
npm will always attempt to get whatever data it can out of a lockfile, even
120120
if it is not a version that it was designed to support.

deps/npm/docs/content/using-npm/scripts.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,6 @@ These are run from the scripts of `<pkg-name>`
159159
* `publish`
160160
* `postpublish`
161161

162-
`prepare` will not run during `--dry-run`
163-
164162
#### [`npm rebuild`](/commands/npm-rebuild)
165163

166164
* `preinstall`

0 commit comments

Comments
 (0)