Skip to content

Commit d81d426

Browse files
committed
feat: default install-links to true
BREAKING CHANGE: this changes the default value of `install-links` to true Closes npm/statusboard#510
1 parent dcc3765 commit d81d426

21 files changed

+48
-48
lines changed

docs/content/commands/npm-audit.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ This value is not exported to the environment for child processes.
453453

454454
#### `install-links`
455455

456-
* Default: false
456+
* Default: true
457457
* Type: Boolean
458458

459459
When set file: protocol dependencies that exist outside of the project root

docs/content/commands/npm-ci.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ This value is not exported to the environment for child processes.
361361

362362
#### `install-links`
363363

364-
* Default: false
364+
* Default: true
365365
* Type: Boolean
366366

367367
When set file: protocol dependencies that exist outside of the project root

docs/content/commands/npm-dedupe.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ This value is not exported to the environment for child processes.
308308
309309
#### `install-links`
310310
311-
* Default: false
311+
* Default: true
312312
* Type: Boolean
313313
314314
When set file: protocol dependencies that exist outside of the project root

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ This value is not exported to the environment for child processes.
232232

233233
#### `install-links`
234234

235-
* Default: false
235+
* Default: true
236236
* Type: Boolean
237237

238238
When set file: protocol dependencies that exist outside of the project root

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ This value is not exported to the environment for child processes.
307307

308308
#### `install-links`
309309

310-
* Default: false
310+
* Default: true
311311
* Type: Boolean
312312

313313
When set file: protocol dependencies that exist outside of the project root

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ This value is not exported to the environment for child processes.
308308

309309
#### `install-links`
310310

311-
* Default: false
311+
* Default: true
312312
* Type: Boolean
313313

314314
When set file: protocol dependencies that exist outside of the project root

docs/content/commands/npm-install.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ This value is not exported to the environment for child processes.
698698
699699
#### `install-links`
700700
701-
* Default: false
701+
* Default: true
702702
* Type: Boolean
703703
704704
When set file: protocol dependencies that exist outside of the project root

docs/content/commands/npm-link.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ This value is not exported to the environment for child processes.
384384

385385
#### `install-links`
386386

387-
* Default: false
387+
* Default: true
388388
* Type: Boolean
389389

390390
When set file: protocol dependencies that exist outside of the project root

docs/content/commands/npm-ls.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ This value is not exported to the environment for child processes.
287287

288288
#### `install-links`
289289

290-
* Default: false
290+
* Default: true
291291
* Type: Boolean
292292

293293
When set file: protocol dependencies that exist outside of the project root

docs/content/commands/npm-prune.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ This value is not exported to the environment for child processes.
193193

194194
#### `install-links`
195195

196-
* Default: false
196+
* Default: true
197197
* Type: Boolean
198198

199199
When set file: protocol dependencies that exist outside of the project root

docs/content/commands/npm-rebuild.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ This value is not exported to the environment for child processes.
163163

164164
#### `install-links`
165165

166-
* Default: false
166+
* Default: true
167167
* Type: Boolean
168168

169169
When set file: protocol dependencies that exist outside of the project root

docs/content/commands/npm-uninstall.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ This value is not exported to the environment for child processes.
147147

148148
#### `install-links`
149149

150-
* Default: false
150+
* Default: true
151151
* Type: Boolean
152152

153153
When set file: protocol dependencies that exist outside of the project root

docs/content/commands/npm-update.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ This value is not exported to the environment for child processes.
435435

436436
#### `install-links`
437437

438-
* Default: false
438+
* Default: true
439439
* Type: Boolean
440440

441441
When set file: protocol dependencies that exist outside of the project root

docs/content/using-npm/config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ number, if not already set in package.json.
910910

911911
#### `install-links`
912912

913-
* Default: false
913+
* Default: true
914914
* Type: Boolean
915915

916916
When set file: protocol dependencies that exist outside of the project root

lib/utils/config/definitions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ define('init.version', {
10831083
})
10841084

10851085
define('install-links', {
1086-
default: false,
1086+
default: true,
10871087
type: Boolean,
10881088
description: `
10891089
When set file: protocol dependencies that exist outside of the project root

smoke-tests/tap-snapshots/test/index.js.test.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ npm ERR! [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
6161
npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
6262
npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
6363
npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
64-
npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
64+
npm ERR! [-ws|--workspaces] [--include-workspace-root] [--no-install-links]
6565
npm ERR!
6666
npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
6767
npm ERR!

tap-snapshots/test/lib/commands/config.js.test.cjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ exports[`test/lib/commands/config.js TAP config list --json > output matches sna
8181
"init.license": "ISC",
8282
"init.module": "{HOME}/.npm-init.js",
8383
"init.version": "1.0.0",
84-
"install-links": false,
84+
"install-links": true,
8585
"key": null,
8686
"legacy-bundling": false,
8787
"legacy-peer-deps": false,
@@ -237,7 +237,7 @@ init.author.url = ""
237237
init.license = "ISC"
238238
init.module = "{HOME}/.npm-init.js"
239239
init.version = "1.0.0"
240-
install-links = false
240+
install-links = true
241241
json = false
242242
key = null
243243
legacy-bundling = false

tap-snapshots/test/lib/load-all-commands.js.test.cjs

+14-14
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Options:
5252
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
5353
[--foreground-scripts] [--ignore-scripts]
5454
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
55-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
55+
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
5656
5757
Run "npm help audit" for more info
5858
`
@@ -122,7 +122,7 @@ Options:
122122
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
123123
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
124124
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
125-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
125+
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
126126
127127
aliases: clean-install, ic, install-clean, isntall-clean
128128
@@ -168,7 +168,7 @@ Options:
168168
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts]
169169
[--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
170170
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
171-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
171+
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
172172
173173
alias: ddp
174174
@@ -317,7 +317,7 @@ Options:
317317
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts]
318318
[--no-audit] [--no-bin-links] [--no-fund]
319319
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
320-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
320+
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
321321
322322
Run "npm help find-dupes" for more info
323323
`
@@ -416,7 +416,7 @@ Options:
416416
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
417417
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
418418
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
419-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
419+
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
420420
421421
aliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall
422422
@@ -436,7 +436,7 @@ Options:
436436
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
437437
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
438438
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
439-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
439+
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
440440
441441
alias: cit
442442
@@ -456,7 +456,7 @@ Options:
456456
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
457457
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
458458
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
459-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
459+
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
460460
461461
alias: it
462462
@@ -476,7 +476,7 @@ Options:
476476
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts]
477477
[--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
478478
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
479-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
479+
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
480480
481481
alias: ln
482482
@@ -494,7 +494,7 @@ Options:
494494
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--link]
495495
[--package-lock-only] [--unicode]
496496
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
497-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
497+
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
498498
499499
alias: la
500500
@@ -539,7 +539,7 @@ Options:
539539
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--link]
540540
[--package-lock-only] [--unicode]
541541
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
542-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
542+
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
543543
544544
alias: list
545545
@@ -674,7 +674,7 @@ Options:
674674
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--dry-run]
675675
[--json] [--foreground-scripts] [--ignore-scripts]
676676
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
677-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
677+
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
678678
679679
Run "npm help prune" for more info
680680
`
@@ -716,7 +716,7 @@ npm rebuild [<package-spec>] ...]
716716
Options:
717717
[-g|--global] [--no-bin-links] [--foreground-scripts] [--ignore-scripts]
718718
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
719-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
719+
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
720720
721721
alias: rb
722722
@@ -926,7 +926,7 @@ npm uninstall [<@scope>/]<pkg>...
926926
Options:
927927
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
928928
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
929-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
929+
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
930930
931931
aliases: unlink, remove, rm, r, un
932932
@@ -972,7 +972,7 @@ Options:
972972
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
973973
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
974974
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
975-
[-ws|--workspaces] [--include-workspace-root] [--install-links]
975+
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
976976
977977
aliases: up, upgrade, udpate
978978

0 commit comments

Comments
 (0)