Skip to content

Commit 3cc41d2

Browse files
npm-cli-botrichardlau
authored andcommitted
deps: upgrade npm to 10.2.0
PR-URL: #50027 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 61b4afb commit 3cc41d2

File tree

303 files changed

+13184
-1093
lines changed

Some content is hidden

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

303 files changed

+13184
-1093
lines changed

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

+31
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ vulnerability is found. It may be useful in CI environments to include the
3232
will cause the command to fail. This option does not filter the report
3333
output, it simply changes the command's failure threshold.
3434

35+
### Package lock
36+
37+
By default npm requires a package-lock or shrinkwrap in order to run the
38+
audit. You can bypass the package lock with `--no-package-lock` but be
39+
aware the results may be different with every run, since npm will
40+
re-build the dependency tree each time.
41+
3542
### Audit Signatures
3643

3744
To ensure the integrity of packages you download from the public npm registry, or any registry that supports signatures, you can verify the registry signatures of downloaded packages using the npm CLI.
@@ -321,6 +328,16 @@ For `list` this means the output will be based on the tree described by the
321328

322329

323330

331+
#### `package-lock`
332+
333+
* Default: true
334+
* Type: Boolean
335+
336+
If set to false, then ignore `package-lock.json` files when installing. This
337+
will also prevent _writing_ `package-lock.json` if `save` is true.
338+
339+
340+
324341
#### `omit`
325342

326343
* Default: 'dev' if the `NODE_ENV` environment variable is set to
@@ -341,6 +358,20 @@ variable will be set to `'production'` for all lifecycle scripts.
341358

342359

343360

361+
#### `include`
362+
363+
* Default:
364+
* Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
365+
366+
Option that allows for defining which types of dependencies to install.
367+
368+
This is the inverse of `--omit=<type>`.
369+
370+
Dependency types specified in `--include` will not be omitted, regardless of
371+
the order in which omit/include are specified on the command-line.
372+
373+
374+
344375
#### `foreground-scripts`
345376

346377
* Default: false

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

+14
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,20 @@ variable will be set to `'production'` for all lifecycle scripts.
132132

133133

134134

135+
#### `include`
136+
137+
* Default:
138+
* Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
139+
140+
Option that allows for defining which types of dependencies to install.
141+
142+
This is the inverse of `--omit=<type>`.
143+
144+
Dependency types specified in `--include` will not be omitted, regardless of
145+
the order in which omit/include are specified on the command-line.
146+
147+
148+
135149
#### `strict-peer-deps`
136150

137151
* Default: false

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

+14
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,20 @@ variable will be set to `'production'` for all lifecycle scripts.
168168
169169
170170
171+
#### `include`
172+
173+
* Default:
174+
* Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
175+
176+
Option that allows for defining which types of dependencies to install.
177+
178+
This is the inverse of `--omit=<type>`.
179+
180+
Dependency types specified in `--include` will not be omitted, regardless of
181+
the order in which omit/include are specified on the command-line.
182+
183+
184+
171185
#### `ignore-scripts`
172186
173187
* Default: false

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: npm-doctor
33
section: 1
4-
description: Check your npm environment
4+
description: Check the health of your npm environment
55
---
66

77
### Synopsis

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

+14
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,20 @@ variable will be set to `'production'` for all lifecycle scripts.
108108

109109

110110

111+
#### `include`
112+
113+
* Default:
114+
* Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
115+
116+
Option that allows for defining which types of dependencies to install.
117+
118+
This is the inverse of `--omit=<type>`.
119+
120+
Dependency types specified in `--include` will not be omitted, regardless of
121+
the order in which omit/include are specified on the command-line.
122+
123+
124+
111125
#### `ignore-scripts`
112126

113127
* Default: false

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

+50
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,56 @@ dot to represent the current directory in that context, e.g: `react-app .`:
156156

157157
### Configuration
158158

159+
#### `init-author-name`
160+
161+
* Default: ""
162+
* Type: String
163+
164+
The value `npm init` should use by default for the package author's name.
165+
166+
167+
168+
#### `init-author-url`
169+
170+
* Default: ""
171+
* Type: "" or URL
172+
173+
The value `npm init` should use by default for the package author's
174+
homepage.
175+
176+
177+
178+
#### `init-license`
179+
180+
* Default: "ISC"
181+
* Type: String
182+
183+
The value `npm init` should use by default for the package license.
184+
185+
186+
187+
#### `init-module`
188+
189+
* Default: "~/.npm-init.js"
190+
* Type: Path
191+
192+
A module that will be loaded by the `npm init` command. See the
193+
documentation for the
194+
[init-package-json](https://github.com/npm/init-package-json) module for
195+
more information, or [npm init](/commands/npm-init).
196+
197+
198+
199+
#### `init-version`
200+
201+
* Default: "1.0.0"
202+
* Type: SemVer string
203+
204+
The value that `npm init` should use by default for the package version
205+
number, if not already set in package.json.
206+
207+
208+
159209
#### `yes`
160210

161211
* Default: null

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

+14
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,20 @@ variable will be set to `'production'` for all lifecycle scripts.
7878

7979

8080

81+
#### `include`
82+
83+
* Default:
84+
* Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
85+
86+
Option that allows for defining which types of dependencies to install.
87+
88+
This is the inverse of `--omit=<type>`.
89+
90+
Dependency types specified in `--include` will not be omitted, regardless of
91+
the order in which omit/include are specified on the command-line.
92+
93+
94+
8195
#### `strict-peer-deps`
8296

8397
* Default: false

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

+14
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,20 @@ variable will be set to `'production'` for all lifecycle scripts.
119119

120120

121121

122+
#### `include`
123+
124+
* Default:
125+
* Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
126+
127+
Option that allows for defining which types of dependencies to install.
128+
129+
This is the inverse of `--omit=<type>`.
130+
131+
Dependency types specified in `--include` will not be omitted, regardless of
132+
the order in which omit/include are specified on the command-line.
133+
134+
135+
122136
#### `strict-peer-deps`
123137

124138
* Default: false

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

+14
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,20 @@ variable will be set to `'production'` for all lifecycle scripts.
509509
510510
511511
512+
#### `include`
513+
514+
* Default:
515+
* Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
516+
517+
Option that allows for defining which types of dependencies to install.
518+
519+
This is the inverse of `--omit=<type>`.
520+
521+
Dependency types specified in `--include` will not be omitted, regardless of
522+
the order in which omit/include are specified on the command-line.
523+
524+
525+
512526
#### `strict-peer-deps`
513527
514528
* Default: false

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

+14
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,20 @@ variable will be set to `'production'` for all lifecycle scripts.
241241

242242

243243

244+
#### `include`
245+
246+
* Default:
247+
* Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
248+
249+
Option that allows for defining which types of dependencies to install.
250+
251+
This is the inverse of `--omit=<type>`.
252+
253+
Dependency types specified in `--include` will not be omitted, regardless of
254+
the order in which omit/include are specified on the command-line.
255+
256+
257+
244258
#### `ignore-scripts`
245259

246260
* Default: false

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

+15-1
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@10.1.0 /path/to/npm
30+
npm@10.2.0 /path/to/npm
3131
3232
3333
```
@@ -165,6 +165,20 @@ variable will be set to `'production'` for all lifecycle scripts.
165165

166166

167167

168+
#### `include`
169+
170+
* Default:
171+
* Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
172+
173+
Option that allows for defining which types of dependencies to install.
174+
175+
This is the inverse of `--omit=<type>`.
176+
177+
Dependency types specified in `--include` will not be omitted, regardless of
178+
the order in which omit/include are specified on the command-line.
179+
180+
181+
168182
#### `link`
169183

170184
* Default: false

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

+14
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,20 @@ variable will be set to `'production'` for all lifecycle scripts.
5555

5656

5757

58+
#### `include`
59+
60+
* Default:
61+
* Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
62+
63+
Option that allows for defining which types of dependencies to install.
64+
65+
This is the inverse of `--omit=<type>`.
66+
67+
Dependency types specified in `--include` will not be omitted, regardless of
68+
the order in which omit/include are specified on the command-line.
69+
70+
71+
5872
#### `dry-run`
5973

6074
* Default: false

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

+29
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,19 @@ npm query ":type(git)" | jq 'map(.name)' | xargs -I {} npm why {}
135135
},
136136
...
137137
```
138+
### Package lock only mode
139+
140+
If package-lock-only is enabled, only the information in the package
141+
lock (or shrinkwrap) is loaded. This means that information from the
142+
package.json files of your dependencies will not be included in the
143+
result set (e.g. description, homepage, engines).
144+
145+
### Package lock only mode
146+
147+
If package-lock-only is enabled, only the information in the package
148+
lock (or shrinkwrap) is loaded. This means that information from the
149+
package.json files of your dependencies will not be included in the
150+
result set (e.g. description, homepage, engines).
138151

139152
### Configuration
140153

@@ -206,6 +219,22 @@ all workspaces via the `workspaces` flag, will cause npm to operate only on
206219
the specified workspaces, and not on the root project.
207220

208221
This value is not exported to the environment for child processes.
222+
223+
#### `package-lock-only`
224+
225+
* Default: false
226+
* Type: Boolean
227+
228+
If set to true, the current operation will only use the `package-lock.json`,
229+
ignoring `node_modules`.
230+
231+
For `update` this means only the `package-lock.json` will be updated,
232+
instead of checking `node_modules` and downloading dependencies.
233+
234+
For `list` this means the output will be based on the tree described by the
235+
`package-lock.json`, rather than the contents of `node_modules`.
236+
237+
209238
## See Also
210239

211240
* [dependency selectors](/using-npm/dependency-selectors)

0 commit comments

Comments
 (0)