Skip to content

Commit 63503a4

Browse files
authored
deps: upgrade npm to 8.8.0
PR-URL: #42886 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Mestery <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 4ecfe3f commit 63503a4

File tree

174 files changed

+7767
-2200
lines changed

Some content is hidden

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

174 files changed

+7767
-2200
lines changed

deps/npm/bin/npx

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ case `uname` in
1212
esac
1313

1414
NODE_EXE="$basedir/node.exe"
15+
if ! [ -x "$NODE_EXE" ]; then
16+
NODE_EXE="$basedir/node"
17+
fi
1518
if ! [ -x "$NODE_EXE" ]; then
1619
NODE_EXE=node
1720
fi

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

+12
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,18 @@ This value is not exported to the environment for child processes.
399399
<!-- automatically generated, do not edit manually -->
400400
<!-- see lib/utils/config/definitions.js -->
401401

402+
#### `install-links`
403+
404+
* Default: false
405+
* Type: Boolean
406+
407+
When set file: protocol dependencies that exist outside of the project root
408+
will be packed and installed as regular dependencies instead of creating a
409+
symlink. This option has no effect on workspaces.
410+
411+
<!-- automatically generated, do not edit manually -->
412+
<!-- see lib/utils/config/definitions.js -->
413+
402414
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
403415

404416
### See Also

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ In short, the main differences between using `npm install` and `npm ci` are:
4848

4949
NOTE: If you create your `package-lock.json` file by running `npm install`
5050
with flags that can affect the shape of your dependency tree, such as
51-
`--legacy-peer-deps`, you _must_ provide the same flags to `npm ci` or you
52-
are likely to encounter errors. An easy way to do this is to run
51+
`--legacy-peer-deps` or `--install-links`, you _must_ provide the same
52+
flags to `npm ci` or you are likely to encounter errors. An easy way to do
53+
this is to run, for example,
5354
`npm config set legacy-peer-deps=true --location=project` and commit the
5455
`.npmrc` file to your repo.
5556

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

+12
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,18 @@ This value is not exported to the environment for child processes.
310310
<!-- automatically generated, do not edit manually -->
311311
<!-- see lib/utils/config/definitions.js -->
312312
313+
#### `install-links`
314+
315+
* Default: false
316+
* Type: Boolean
317+
318+
When set file: protocol dependencies that exist outside of the project root
319+
will be packed and installed as regular dependencies instead of creating a
320+
symlink. This option has no effect on workspaces.
321+
322+
<!-- automatically generated, do not edit manually -->
323+
<!-- see lib/utils/config/definitions.js -->
324+
313325
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
314326
315327
### See Also

deps/npm/docs/content/commands/npm-find-dupes.md

+12
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,18 @@ This value is not exported to the environment for child processes.
234234
<!-- automatically generated, do not edit manually -->
235235
<!-- see lib/utils/config/definitions.js -->
236236

237+
#### `install-links`
238+
239+
* Default: false
240+
* Type: Boolean
241+
242+
When set file: protocol dependencies that exist outside of the project root
243+
will be packed and installed as regular dependencies instead of creating a
244+
symlink. This option has no effect on workspaces.
245+
246+
<!-- automatically generated, do not edit manually -->
247+
<!-- see lib/utils/config/definitions.js -->
248+
237249
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
238250

239251
### See Also

deps/npm/docs/content/commands/npm-install-test.md

+12
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,18 @@ This value is not exported to the environment for child processes.
319319
<!-- automatically generated, do not edit manually -->
320320
<!-- see lib/utils/config/definitions.js -->
321321

322+
#### `install-links`
323+
324+
* Default: false
325+
* Type: Boolean
326+
327+
When set file: protocol dependencies that exist outside of the project root
328+
will be packed and installed as regular dependencies instead of creating a
329+
symlink. This option has no effect on workspaces.
330+
331+
<!-- automatically generated, do not edit manually -->
332+
<!-- see lib/utils/config/definitions.js -->
333+
322334
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
323335

324336
### See Also

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

+14-2
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ into a tarball (b).
9191
*npm will not install the package dependencies* in the directory `<folder>`,
9292
but it will create a symlink to `<folder>`.
9393

94-
> NOTE: If you want to install the content of a directory like a package from the registry instead of creating a link, you would need to use [`npm pack`](/commands/npm-pack) while in the `<folder>` directory, and then install the resulting tarball instead of the `<folder>` using `npm install <tarball file>`
94+
> NOTE: If you want to install the content of a directory like a package from the registry instead of creating a link, you would need to use the `--install-links` option.
9595
9696
Example:
9797

9898
```bash
99-
npm install ../../other-package
99+
npm install ../../other-package --install-links
100100
npm install ./sub-package
101101
```
102102

@@ -709,6 +709,18 @@ This value is not exported to the environment for child processes.
709709
<!-- automatically generated, do not edit manually -->
710710
<!-- see lib/utils/config/definitions.js -->
711711
712+
#### `install-links`
713+
714+
* Default: false
715+
* Type: Boolean
716+
717+
When set file: protocol dependencies that exist outside of the project root
718+
will be packed and installed as regular dependencies instead of creating a
719+
symlink. This option has no effect on workspaces.
720+
721+
<!-- automatically generated, do not edit manually -->
722+
<!-- see lib/utils/config/definitions.js -->
723+
712724
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
713725
714726
### Algorithm

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

+12
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,18 @@ This value is not exported to the environment for child processes.
387387
<!-- automatically generated, do not edit manually -->
388388
<!-- see lib/utils/config/definitions.js -->
389389

390+
#### `install-links`
391+
392+
* Default: false
393+
* Type: Boolean
394+
395+
When set file: protocol dependencies that exist outside of the project root
396+
will be packed and installed as regular dependencies instead of creating a
397+
symlink. This option has no effect on workspaces.
398+
399+
<!-- automatically generated, do not edit manually -->
400+
<!-- see lib/utils/config/definitions.js -->
401+
390402
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
391403

392404
### See Also

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

+12
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,18 @@ This value is not exported to the environment for child processes.
285285
<!-- automatically generated, do not edit manually -->
286286
<!-- see lib/utils/config/definitions.js -->
287287

288+
#### `install-links`
289+
290+
* Default: false
291+
* Type: Boolean
292+
293+
When set file: protocol dependencies that exist outside of the project root
294+
will be packed and installed as regular dependencies instead of creating a
295+
symlink. This option has no effect on workspaces.
296+
297+
<!-- automatically generated, do not edit manually -->
298+
<!-- see lib/utils/config/definitions.js -->
299+
288300
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
289301

290302
### See Also

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

+12
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,18 @@ This value is not exported to the environment for child processes.
191191
<!-- automatically generated, do not edit manually -->
192192
<!-- see lib/utils/config/definitions.js -->
193193

194+
#### `install-links`
195+
196+
* Default: false
197+
* Type: Boolean
198+
199+
When set file: protocol dependencies that exist outside of the project root
200+
will be packed and installed as regular dependencies instead of creating a
201+
symlink. This option has no effect on workspaces.
202+
203+
<!-- automatically generated, do not edit manually -->
204+
<!-- see lib/utils/config/definitions.js -->
205+
194206
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
195207

196208
### See Also

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

+12
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,18 @@ This value is not exported to the environment for child processes.
162162
<!-- automatically generated, do not edit manually -->
163163
<!-- see lib/utils/config/definitions.js -->
164164

165+
#### `install-links`
166+
167+
* Default: false
168+
* Type: Boolean
169+
170+
When set file: protocol dependencies that exist outside of the project root
171+
will be packed and installed as regular dependencies instead of creating a
172+
symlink. This option has no effect on workspaces.
173+
174+
<!-- automatically generated, do not edit manually -->
175+
<!-- see lib/utils/config/definitions.js -->
176+
165177
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
166178

167179
### See Also

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

+12
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,18 @@ This value is not exported to the environment for child processes.
145145
<!-- automatically generated, do not edit manually -->
146146
<!-- see lib/utils/config/definitions.js -->
147147

148+
#### `install-links`
149+
150+
* Default: false
151+
* Type: Boolean
152+
153+
When set file: protocol dependencies that exist outside of the project root
154+
will be packed and installed as regular dependencies instead of creating a
155+
symlink. This option has no effect on workspaces.
156+
157+
<!-- automatically generated, do not edit manually -->
158+
<!-- see lib/utils/config/definitions.js -->
159+
148160
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
149161

150162
### See Also

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

+12
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,18 @@ This value is not exported to the environment for child processes.
437437
<!-- automatically generated, do not edit manually -->
438438
<!-- see lib/utils/config/definitions.js -->
439439

440+
#### `install-links`
441+
442+
* Default: false
443+
* Type: Boolean
444+
445+
When set file: protocol dependencies that exist outside of the project root
446+
will be packed and installed as regular dependencies instead of creating a
447+
symlink. This option has no effect on workspaces.
448+
449+
<!-- automatically generated, do not edit manually -->
450+
<!-- see lib/utils/config/definitions.js -->
451+
440452
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
441453

442454
### See Also

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

+14
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ npm ls --global --parseable --long --loglevel info
138138
* Type: null or String
139139

140140
A basic-auth string to use when authenticating against the npm registry.
141+
This will ONLY be used to authenticate against the npm registry. For other
142+
registries you will need to scope it like "//other-registry.tld/:_auth"
141143

142144
Warning: This should generally not be set via a command-line option. It is
143145
safer to use a registry-provided authentication bearer token stored in the
@@ -891,6 +893,18 @@ number, if not already set in package.json.
891893
<!-- automatically generated, do not edit manually -->
892894
<!-- see lib/utils/config/definitions.js -->
893895

896+
#### `install-links`
897+
898+
* Default: false
899+
* Type: Boolean
900+
901+
When set file: protocol dependencies that exist outside of the project root
902+
will be packed and installed as regular dependencies instead of creating a
903+
symlink. This option has no effect on workspaces.
904+
905+
<!-- automatically generated, do not edit manually -->
906+
<!-- see lib/utils/config/definitions.js -->
907+
894908
#### `json`
895909

896910
* Default: false

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

+17-3
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,23 @@ If you wish, you may associate a scope with a registry; see below.
7979

8080
#### Publishing public scoped packages to the primary npm registry
8181

82-
To publish a public scoped package, you must specify `--access public` with
83-
the initial publication. This will publish the package and set access
84-
to `public` as if you had run `npm access public` after publishing.
82+
Publishing to a scope, you have two options:
83+
84+
- Publishing to your user scope (example: `@username/module`)
85+
- Publishing to an organization scope (example: `@org/module`)
86+
87+
If publishing a public module to an organization scope, you must
88+
first either create an organization with the name of the scope
89+
that you'd like to publish to or be added to an existing organization
90+
with the appropriate permisssions. For example, if you'd like to
91+
publish to `@org`, you would need to create the `org` organization
92+
on npmjs.com prior to trying to publish.
93+
94+
Scoped packages are not public by default. You will need to specify
95+
`--access public` with the initial `npm publish` command. This will publish
96+
the package and set access to `public` as if you had run `npm access public`
97+
after publishing. You do not need to do this when publishing new versions of
98+
an existing scoped package.
8599

86100
#### Publishing private scoped packages to the npm registry
87101

deps/npm/docs/output/commands/npm-audit.html

+11-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ <h1 id="npm-audit">npm-audit</h1>
142142

143143
<section id="table_of_contents">
144144
<h2 id="table-of-contents">Table of contents</h2>
145-
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#audit-endpoints">Audit Endpoints</a></li><ul><li><a href="#bulk-advisory-endpoint">Bulk Advisory Endpoint</a></li><li><a href="#quick-audit-endpoint">Quick Audit Endpoint</a></li><li><a href="#scrubbing">Scrubbing</a></li><li><a href="#calculating-meta-vulnerabilities-and-remediations">Calculating Meta-Vulnerabilities and Remediations</a></li></ul><li><a href="#exit-code">Exit Code</a></li><li><a href="#examples">Examples</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#audit-level"><code>audit-level</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#force"><code>force</code></a></li><li><a href="#json"><code>json</code></a></li><li><a href="#package-lock-only"><code>package-lock-only</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#foreground-scripts"><code>foreground-scripts</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
145+
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#audit-endpoints">Audit Endpoints</a></li><ul><li><a href="#bulk-advisory-endpoint">Bulk Advisory Endpoint</a></li><li><a href="#quick-audit-endpoint">Quick Audit Endpoint</a></li><li><a href="#scrubbing">Scrubbing</a></li><li><a href="#calculating-meta-vulnerabilities-and-remediations">Calculating Meta-Vulnerabilities and Remediations</a></li></ul><li><a href="#exit-code">Exit Code</a></li><li><a href="#examples">Examples</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#audit-level"><code>audit-level</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#force"><code>force</code></a></li><li><a href="#json"><code>json</code></a></li><li><a href="#package-lock-only"><code>package-lock-only</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#foreground-scripts"><code>foreground-scripts</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li><li><a href="#install-links"><code>install-links</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
146146
</section>
147147

148148
<div id="_content"><h3 id="synopsis">Synopsis</h3>
@@ -442,6 +442,16 @@ <h4 id="include-workspace-root"><code>include-workspace-root</code></h4>
442442
<p>This value is not exported to the environment for child processes.</p>
443443
<!-- raw HTML omitted -->
444444
<!-- raw HTML omitted -->
445+
<h4 id="install-links"><code>install-links</code></h4>
446+
<ul>
447+
<li>Default: false</li>
448+
<li>Type: Boolean</li>
449+
</ul>
450+
<p>When set file: protocol dependencies that exist outside of the project root
451+
will be packed and installed as regular dependencies instead of creating a
452+
symlink. This option has no effect on workspaces.</p>
453+
<!-- raw HTML omitted -->
454+
<!-- raw HTML omitted -->
445455
<!-- raw HTML omitted -->
446456
<h3 id="see-also">See Also</h3>
447457
<ul>

deps/npm/docs/output/commands/npm-ci.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,9 @@ <h3 id="description">Description</h3>
181181
</ul>
182182
<p>NOTE: If you create your <code>package-lock.json</code> file by running <code>npm install</code>
183183
with flags that can affect the shape of your dependency tree, such as
184-
<code>--legacy-peer-deps</code>, you <em>must</em> provide the same flags to <code>npm ci</code> or you
185-
are likely to encounter errors. An easy way to do this is to run
184+
<code>--legacy-peer-deps</code> or <code>--install-links</code>, you <em>must</em> provide the same
185+
flags to <code>npm ci</code> or you are likely to encounter errors. An easy way to do
186+
this is to run, for example,
186187
<code>npm config set legacy-peer-deps=true --location=project</code> and commit the
187188
<code>.npmrc</code> file to your repo.</p>
188189
<h3 id="example">Example</h3>

deps/npm/docs/output/commands/npm-dedupe.html

+11-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ <h1 id="npm-dedupe">npm-dedupe</h1>
142142

143143
<section id="table_of_contents">
144144
<h2 id="table-of-contents">Table of contents</h2>
145-
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
145+
<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#global-style"><code>global-style</code></a></li><li><a href="#legacy-bundling"><code>legacy-bundling</code></a></li><li><a href="#strict-peer-deps"><code>strict-peer-deps</code></a></li><li><a href="#package-lock"><code>package-lock</code></a></li><li><a href="#omit"><code>omit</code></a></li><li><a href="#ignore-scripts"><code>ignore-scripts</code></a></li><li><a href="#audit"><code>audit</code></a></li><li><a href="#bin-links"><code>bin-links</code></a></li><li><a href="#fund"><code>fund</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li><li><a href="#install-links"><code>install-links</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
146146
</section>
147147

148148
<div id="_content"><h3 id="synopsis">Synopsis</h3>
@@ -383,6 +383,16 @@ <h4 id="include-workspace-root"><code>include-workspace-root</code></h4>
383383
<p>This value is not exported to the environment for child processes.</p>
384384
<!-- raw HTML omitted -->
385385
<!-- raw HTML omitted -->
386+
<h4 id="install-links"><code>install-links</code></h4>
387+
<ul>
388+
<li>Default: false</li>
389+
<li>Type: Boolean</li>
390+
</ul>
391+
<p>When set file: protocol dependencies that exist outside of the project root
392+
will be packed and installed as regular dependencies instead of creating a
393+
symlink. This option has no effect on workspaces.</p>
394+
<!-- raw HTML omitted -->
395+
<!-- raw HTML omitted -->
386396
<!-- raw HTML omitted -->
387397
<h3 id="see-also">See Also</h3>
388398
<ul>

0 commit comments

Comments
 (0)