Skip to content

Commit dcc1366

Browse files
wraithgarlukekarrys
authored andcommitted
fix(config): update link definition
The behavior for installing global versions if found has never been part of npm@7. PR-URL: #3418 Credit: @wraithgar Close: #3418 Reviewed-by: @lukekarrys
1 parent 16a95c6 commit dcc1366

File tree

4 files changed

+5
-48
lines changed

4 files changed

+5
-48
lines changed

docs/content/commands/npm-ls.md

+1-12
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,7 @@ variable will be set to `'production'` for all lifecycle scripts.
155155
* Default: false
156156
* Type: Boolean
157157

158-
If true, then local installs will link if there is a suitable globally
159-
installed package.
160-
161-
Note that this means that local installs can cause things to be installed
162-
into the global space at the same time. The link is only done if one of the
163-
two conditions are met:
164-
165-
* The package is not already installed globally, or
166-
* the globally installed version is identical to the version that is being
167-
installed locally.
168-
169-
When used with `npm ls`, only show packages that are linked.
158+
Used with `npm ls`, limiting output to only those packages that are linked.
170159

171160
#### `unicode`
172161

docs/content/using-npm/config.md

+1-12
Original file line numberDiff line numberDiff line change
@@ -743,18 +743,7 @@ Use of `legacy-peer-deps` is not recommended, as it will not enforce the
743743
* Default: false
744744
* Type: Boolean
745745

746-
If true, then local installs will link if there is a suitable globally
747-
installed package.
748-
749-
Note that this means that local installs can cause things to be installed
750-
into the global space at the same time. The link is only done if one of the
751-
two conditions are met:
752-
753-
* The package is not already installed globally, or
754-
* the globally installed version is identical to the version that is being
755-
installed locally.
756-
757-
When used with `npm ls`, only show packages that are linked.
746+
Used with `npm ls`, limiting output to only those packages that are linked.
758747

759748
#### `local-address`
760749

lib/utils/config/definitions.js

+2-12
Original file line numberDiff line numberDiff line change
@@ -1086,18 +1086,8 @@ define('link', {
10861086
default: false,
10871087
type: Boolean,
10881088
description: `
1089-
If true, then local installs will link if there is a suitable globally
1090-
installed package.
1091-
1092-
Note that this means that local installs can cause things to be installed
1093-
into the global space at the same time. The link is only done if one of
1094-
the two conditions are met:
1095-
1096-
* The package is not already installed globally, or
1097-
* the globally installed version is identical to the version that is
1098-
being installed locally.
1099-
1100-
When used with \`npm ls\`, only show packages that are linked.
1089+
Used with \`npm ls\`, limiting output to only those packages that are
1090+
linked.
11011091
`,
11021092
})
11031093

tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs

+1-12
Original file line numberDiff line numberDiff line change
@@ -622,18 +622,7 @@ Use of \`legacy-peer-deps\` is not recommended, as it will not enforce the
622622
* Default: false
623623
* Type: Boolean
624624
625-
If true, then local installs will link if there is a suitable globally
626-
installed package.
627-
628-
Note that this means that local installs can cause things to be installed
629-
into the global space at the same time. The link is only done if one of the
630-
two conditions are met:
631-
632-
* The package is not already installed globally, or
633-
* the globally installed version is identical to the version that is being
634-
installed locally.
635-
636-
When used with \`npm ls\`, only show packages that are linked.
625+
Used with \`npm ls\`, limiting output to only those packages that are linked.
637626
638627
#### \`local-address\`
639628

0 commit comments

Comments
 (0)