Skip to content

Commit

Permalink
fix: revert install-links default back to false
Browse files Browse the repository at this point in the history
this new default was unintentionally breaking so we are reverting it as a bug fix, see nodejs/node#46542
  • Loading branch information
nlf committed Feb 7, 2023
1 parent 8200f4f commit 9781538
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion lib/utils/config/definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ define('init.version', {
})

define('install-links', {
default: true,
default: false,
type: Boolean,
description: `
When set file: protocol dependencies will be packed and installed as
Expand Down
2 changes: 1 addition & 1 deletion smoke-tests/tap-snapshots/test/index.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ npm ERR! [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer
npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
npm ERR! [-ws|--workspaces] [--include-workspace-root] [--no-install-links]
npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
npm ERR!
npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
npm ERR!
Expand Down
4 changes: 2 additions & 2 deletions tap-snapshots/test/lib/commands/config.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ exports[`test/lib/commands/config.js TAP config list --json > output matches sna
"init.license": "ISC",
"init.module": "{HOME}/.npm-init.js",
"init.version": "1.0.0",
"install-links": true,
"install-links": false,
"install-strategy": "hoisted",
"key": null,
"legacy-bundling": false,
Expand Down Expand Up @@ -234,7 +234,7 @@ init.author.url = ""
init.license = "ISC"
init.module = "{HOME}/.npm-init.js"
init.version = "1.0.0"
install-links = true
install-links = false
install-strategy = "hoisted"
json = false
key = null
Expand Down
30 changes: 15 additions & 15 deletions tap-snapshots/test/lib/docs.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ number, if not already set in package.json.
#### \`install-links\`
* Default: true
* Default: false
* Type: Boolean
When set file: protocol dependencies will be packed and installed as regular
Expand Down Expand Up @@ -2537,7 +2537,7 @@ Options:
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
[--foreground-scripts] [--ignore-scripts]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
[-ws|--workspaces] [--include-workspace-root] [--install-links]
Run "npm help audit" for more info
Expand Down Expand Up @@ -2627,7 +2627,7 @@ Options:
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
[-ws|--workspaces] [--include-workspace-root] [--install-links]
aliases: clean-install, ic, install-clean, isntall-clean
Expand Down Expand Up @@ -2728,7 +2728,7 @@ Options:
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts]
[--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
[-ws|--workspaces] [--include-workspace-root] [--install-links]
alias: ddp
Expand Down Expand Up @@ -2999,7 +2999,7 @@ Options:
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts]
[--no-audit] [--no-bin-links] [--no-fund]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
[-ws|--workspaces] [--include-workspace-root] [--install-links]
Run "npm help find-dupes" for more info
Expand Down Expand Up @@ -3181,7 +3181,7 @@ Options:
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
[-ws|--workspaces] [--include-workspace-root] [--install-links]
aliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall
Expand Down Expand Up @@ -3228,7 +3228,7 @@ Options:
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
[-ws|--workspaces] [--include-workspace-root] [--install-links]
alias: cit
Expand Down Expand Up @@ -3275,7 +3275,7 @@ Options:
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
[-ws|--workspaces] [--include-workspace-root] [--install-links]
alias: it
Expand Down Expand Up @@ -3322,7 +3322,7 @@ Options:
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--ignore-scripts]
[--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
[-ws|--workspaces] [--include-workspace-root] [--install-links]
alias: ln
Expand Down Expand Up @@ -3365,7 +3365,7 @@ Options:
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--link]
[--package-lock-only] [--unicode]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
[-ws|--workspaces] [--include-workspace-root] [--install-links]
alias: la
Expand Down Expand Up @@ -3447,7 +3447,7 @@ Options:
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--link]
[--package-lock-only] [--unicode]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
[-ws|--workspaces] [--include-workspace-root] [--install-links]
alias: list
Expand Down Expand Up @@ -3717,7 +3717,7 @@ Options:
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] [--dry-run]
[--json] [--foreground-scripts] [--ignore-scripts]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
[-ws|--workspaces] [--include-workspace-root] [--install-links]
Run "npm help prune" for more info
Expand Down Expand Up @@ -3794,7 +3794,7 @@ npm rebuild [<package-spec>] ...]
Options:
[-g|--global] [--no-bin-links] [--foreground-scripts] [--ignore-scripts]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
[-ws|--workspaces] [--include-workspace-root] [--install-links]
alias: rb
Expand Down Expand Up @@ -4150,7 +4150,7 @@ npm uninstall [<@scope>/]<pkg>...
Options:
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
[-ws|--workspaces] [--include-workspace-root] [--install-links]
aliases: unlink, remove, rm, r, un
Expand Down Expand Up @@ -4228,7 +4228,7 @@ Options:
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--include-workspace-root] [--no-install-links]
[-ws|--workspaces] [--include-workspace-root] [--install-links]
aliases: up, upgrade, udpate
Expand Down

0 comments on commit 9781538

Please sign in to comment.