File tree 14 files changed +70
-42
lines changed
14 files changed +70
-42
lines changed Original file line number Diff line number Diff line change @@ -135,10 +135,6 @@ this warning is treated as a failure.
135
135
If set to false, then ignore `package-lock.json` files when installing. This
136
136
will also prevent _writing_ `package-lock.json` if `save` is true.
137
137
138
- When package package-locks are disabled, automatic pruning of extraneous
139
- modules will also be disabled. To remove extraneous modules with
140
- package-locks disabled use `npm prune`.
141
-
142
138
<!-- automatically generated, do not edit manually -->
143
139
<!-- see lib/utils/config/definitions.js -->
144
140
Original file line number Diff line number Diff line change @@ -78,10 +78,6 @@ this warning is treated as a failure.
78
78
If set to false, then ignore ` package-lock.json ` files when installing. This
79
79
will also prevent _ writing_ ` package-lock.json ` if ` save ` is true.
80
80
81
- When package package-locks are disabled, automatic pruning of extraneous
82
- modules will also be disabled. To remove extraneous modules with
83
- package-locks disabled use ` npm prune ` .
84
-
85
81
<!-- automatically generated, do not edit manually -->
86
82
<!-- see lib/utils/config/definitions.js -->
87
83
Original file line number Diff line number Diff line change @@ -129,9 +129,16 @@ this warning is treated as a failure.
129
129
If set to false, then ignore ` package-lock.json ` files when installing. This
130
130
will also prevent _ writing_ ` package-lock.json ` if ` save ` is true.
131
131
132
- When package package-locks are disabled, automatic pruning of extraneous
133
- modules will also be disabled. To remove extraneous modules with
134
- package-locks disabled use ` npm prune ` .
132
+ <!-- automatically generated, do not edit manually -->
133
+ <!-- see lib/utils/config/definitions.js -->
134
+
135
+ #### ` prune `
136
+
137
+ * Default: true
138
+ * Type: Boolean
139
+
140
+ When set to ` false ` , automatic pruning of extraneous modules will be
141
+ disabled.
135
142
136
143
<!-- automatically generated, do not edit manually -->
137
144
<!-- see lib/utils/config/definitions.js -->
Original file line number Diff line number Diff line change @@ -513,9 +513,16 @@ this warning is treated as a failure.
513
513
If set to false, then ignore `package-lock.json` files when installing. This
514
514
will also prevent _writing_ `package-lock.json` if `save` is true.
515
515
516
- When package package-locks are disabled, automatic pruning of extraneous
517
- modules will also be disabled. To remove extraneous modules with
518
- package-locks disabled use `npm prune`.
516
+ <!-- automatically generated, do not edit manually -->
517
+ <!-- see lib/utils/config/definitions.js -->
518
+
519
+ #### `prune`
520
+
521
+ * Default: true
522
+ * Type: Boolean
523
+
524
+ When set to `false`, automatic pruning of extraneous modules will be
525
+ disabled.
519
526
520
527
<!-- automatically generated, do not edit manually -->
521
528
<!-- see lib/utils/config/definitions.js -->
Original file line number Diff line number Diff line change @@ -213,10 +213,6 @@ this warning is treated as a failure.
213
213
If set to false, then ignore ` package-lock.json ` files when installing. This
214
214
will also prevent _ writing_ ` package-lock.json ` if ` save ` is true.
215
215
216
- When package package-locks are disabled, automatic pruning of extraneous
217
- modules will also be disabled. To remove extraneous modules with
218
- package-locks disabled use ` npm prune ` .
219
-
220
216
<!-- automatically generated, do not edit manually -->
221
217
<!-- see lib/utils/config/definitions.js -->
222
218
Original file line number Diff line number Diff line change @@ -229,10 +229,6 @@ this warning is treated as a failure.
229
229
If set to false, then ignore ` package-lock.json ` files when installing. This
230
230
will also prevent _ writing_ ` package-lock.json ` if ` save ` is true.
231
231
232
- When package package-locks are disabled, automatic pruning of extraneous
233
- modules will also be disabled. To remove extraneous modules with
234
- package-locks disabled use ` npm prune ` .
235
-
236
232
<!-- automatically generated, do not edit manually -->
237
233
<!-- see lib/utils/config/definitions.js -->
238
234
Original file line number Diff line number Diff line change @@ -1186,10 +1186,6 @@ The package to install for [`npm exec`](/commands/npm-exec)
1186
1186
If set to false, then ignore ` package-lock.json ` files when installing. This
1187
1187
will also prevent _ writing_ ` package-lock.json ` if ` save ` is true.
1188
1188
1189
- When package package-locks are disabled, automatic pruning of extraneous
1190
- modules will also be disabled. To remove extraneous modules with
1191
- package-locks disabled use ` npm prune ` .
1192
-
1193
1189
<!-- automatically generated, do not edit manually -->
1194
1190
<!-- see lib/utils/config/definitions.js -->
1195
1191
@@ -1293,6 +1289,17 @@ by the underlying `request` library.
1293
1289
<!-- automatically generated, do not edit manually -->
1294
1290
<!-- see lib/utils/config/definitions.js -->
1295
1291
1292
+ #### ` prune `
1293
+
1294
+ * Default: true
1295
+ * Type: Boolean
1296
+
1297
+ When set to ` false ` , automatic pruning of extraneous modules will be
1298
+ disabled.
1299
+
1300
+ <!-- automatically generated, do not edit manually -->
1301
+ <!-- see lib/utils/config/definitions.js -->
1302
+
1296
1303
#### ` read-only `
1297
1304
1298
1305
* Default: false
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ class Install extends ArboristWorkspaceCmd {
33
33
'legacy-bundling' ,
34
34
'strict-peer-deps' ,
35
35
'package-lock' ,
36
+ 'prune' ,
36
37
'omit' ,
37
38
'ignore-scripts' ,
38
39
'audit' ,
Original file line number Diff line number Diff line change @@ -1396,10 +1396,6 @@ define('package-lock', {
1396
1396
If set to false, then ignore \`package-lock.json\` files when installing.
1397
1397
This will also prevent _writing_ \`package-lock.json\` if \`save\` is
1398
1398
true.
1399
-
1400
- When package package-locks are disabled, automatic pruning of extraneous
1401
- modules will also be disabled. To remove extraneous modules with
1402
- package-locks disabled use \`npm prune\`.
1403
1399
` ,
1404
1400
flatten : ( key , obj , flatOptions ) => {
1405
1401
flatten ( key , obj , flatOptions )
@@ -1530,6 +1526,16 @@ define('proxy', {
1530
1526
flatten,
1531
1527
} )
1532
1528
1529
+ define ( 'prune' , {
1530
+ default : true ,
1531
+ type : Boolean ,
1532
+ description : `
1533
+ When set to \`false\`, automatic pruning of extraneous
1534
+ modules will be disabled.
1535
+ ` ,
1536
+ flatten,
1537
+ } )
1538
+
1533
1539
define ( 'read-only' , {
1534
1540
default : false ,
1535
1541
type : Boolean ,
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ exports[`test/lib/commands/config.js TAP config list --json > output matches sna
115
115
"production": null,
116
116
"progress": true,
117
117
"proxy": null,
118
+ "prune": true,
118
119
"read-only": false,
119
120
"rebuild-bundle": true,
120
121
"registry": "https://registry.npmjs.org/",
@@ -267,6 +268,7 @@ preid = ""
267
268
production = null
268
269
progress = true
269
270
proxy = null
271
+ prune = true
270
272
read-only = false
271
273
rebuild-bundle = true
272
274
registry = "https://registry.npmjs.org/"
Original file line number Diff line number Diff line change @@ -448,7 +448,7 @@ npm install <github username>/<github project>
448
448
Options:
449
449
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer]
450
450
[-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]
451
- [--strict-peer-deps] [--no-package-lock]
451
+ [--strict-peer-deps] [--no-package-lock] [--no-prune]
452
452
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts]
453
453
[--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
454
454
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
@@ -495,7 +495,7 @@ npm install-test <github username>/<github project>
495
495
Options:
496
496
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer]
497
497
[-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]
498
- [--strict-peer-deps] [--no-package-lock]
498
+ [--strict-peer-deps] [--no-package-lock] [--no-prune]
499
499
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts]
500
500
[--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
501
501
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ Array [
110
110
"production",
111
111
"progress",
112
112
"proxy",
113
+ "prune",
113
114
"read-only",
114
115
"rebuild-bundle",
115
116
"registry",
@@ -1267,10 +1268,6 @@ exports[`test/lib/utils/config/definitions.js TAP > config description for packa
1267
1268
1268
1269
If set to false, then ignore \`package-lock.json\` files when installing. This
1269
1270
will also prevent _writing_ \`package-lock.json\` if \`save\` is true.
1270
-
1271
- When package package-locks are disabled, automatic pruning of extraneous
1272
- modules will also be disabled. To remove extraneous modules with
1273
- package-locks disabled use \`npm prune\`.
1274
1271
`
1275
1272
1276
1273
exports [ `test/lib/utils/config/definitions.js TAP > config description for package-lock-only 1` ] = `
@@ -1375,6 +1372,16 @@ A proxy to use for outgoing http requests. If the \`HTTP_PROXY\` or
1375
1372
by the underlying \`request\` library.
1376
1373
`
1377
1374
1375
+ exports [ `test/lib/utils/config/definitions.js TAP > config description for prune 1` ] = `
1376
+ #### \`prune\`
1377
+
1378
+ * Default: true
1379
+ * Type: Boolean
1380
+
1381
+ When set to \`false\`, automatic pruning of extraneous modules will be
1382
+ disabled.
1383
+ `
1384
+
1378
1385
exports [ `test/lib/utils/config/definitions.js TAP > config description for read-only 1` ] = `
1379
1386
#### \`read-only\`
1380
1387
Original file line number Diff line number Diff line change @@ -1060,10 +1060,6 @@ The package to install for [\`npm exec\`](/commands/npm-exec)
1060
1060
If set to false, then ignore \`package-lock.json\` files when installing. This
1061
1061
will also prevent _writing_ \`package-lock.json\` if \`save\` is true.
1062
1062
1063
- When package package-locks are disabled, automatic pruning of extraneous
1064
- modules will also be disabled. To remove extraneous modules with
1065
- package-locks disabled use \`npm prune\`.
1066
-
1067
1063
<!-- automatically generated, do not edit manually -->
1068
1064
<!-- see lib/utils/config/definitions.js -->
1069
1065
@@ -1167,6 +1163,17 @@ by the underlying \`request\` library.
1167
1163
<!-- automatically generated, do not edit manually -->
1168
1164
<!-- see lib/utils/config/definitions.js -->
1169
1165
1166
+ #### \`prune\`
1167
+
1168
+ * Default: true
1169
+ * Type: Boolean
1170
+
1171
+ When set to \`false\`, automatic pruning of extraneous modules will be
1172
+ disabled.
1173
+
1174
+ <!-- automatically generated, do not edit manually -->
1175
+ <!-- see lib/utils/config/definitions.js -->
1176
+
1170
1177
#### \`read-only\`
1171
1178
1172
1179
* Default: false
Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ All commands:
557
557
Options:
558
558
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer]
559
559
[-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]
560
- [--strict-peer-deps] [--no-package-lock]
560
+ [--strict-peer-deps] [--no-package-lock] [--no-prune]
561
561
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts]
562
562
[--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
563
563
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
@@ -600,7 +600,7 @@ All commands:
600
600
Options:
601
601
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer]
602
602
[-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]
603
- [--strict-peer-deps] [--no-package-lock]
603
+ [--strict-peer-deps] [--no-package-lock] [--no-prune]
604
604
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts]
605
605
[--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
606
606
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
You can’t perform that action at this time.
0 commit comments