Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 71a2f82

Browse filesBrowse files
npm-cli-botaduh95
authored andcommitted
deps: upgrade npm to 11.11.1
PR-URL: #62216 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 84f60c2 commit 71a2f82
Copy full SHA for 71a2f82

287 files changed

+2,458-1,817Lines changed: 2458 additions & 1817 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: deps/npm/docs/content/commands/npm-ls.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Note that nested packages will *also* show the paths to the specified packages.
2323
For example, running `npm ls promzard` in npm's source tree will show:
2424

2525
```bash
26-
npm@11.11.0 /path/to/npm
26+
npm@11.11.1 /path/to/npm
2727
└─┬ init-package-json@0.0.4
2828
└── promzard@0.1.5
2929
```
Collapse file

‎deps/npm/docs/content/commands/npm-trust.md‎

Copy file name to clipboardExpand all lines: deps/npm/docs/content/commands/npm-trust.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Manage trusted publishing relationships between packages and CI/CD
77
### Synopsis
88

99
```bash
10-
npm trust
10+
1111
```
1212

1313
Note: This command is unaware of workspaces.
Collapse file

‎deps/npm/docs/content/commands/npm.md‎

Copy file name to clipboardExpand all lines: deps/npm/docs/content/commands/npm.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Note: This command is unaware of workspaces.
1414

1515
### Version
1616

17-
11.11.0
17+
11.11.1
1818

1919
### Description
2020

Collapse file

‎deps/npm/docs/content/using-npm/scripts.md‎

Copy file name to clipboardExpand all lines: deps/npm/docs/content/using-npm/scripts.md
-4Lines changed: 0 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,6 @@ For more details, see:
241241
- [npm v7 release notes](https://github.com/npm/cli/releases/tag/v7.0.0)
242242
- [Discussion about script working directory reliability in npm v6 and earlier](https://github.com/npm/npm/issues/12356)
243243

244-
### User
245-
246-
When npm is run as root, scripts are always run with the effective uid and gid of the working directory owner.
247-
248244
### Environment
249245

250246
Package scripts run in an environment where many pieces of information are made available regarding the setup of npm and the current state of the process.
Collapse file

‎deps/npm/docs/content/using-npm/workspaces.md‎

Copy file name to clipboardExpand all lines: deps/npm/docs/content/using-npm/workspaces.md
+7-6Lines changed: 7 additions & 6 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -88,24 +88,25 @@ npm install abbrev -w a
8888

8989
**Adding a workspace as a dependency of another workspace:**
9090

91-
If you want to add workspace **b** as a dependency of workspace **a**, you can use the workspace protocol in the dependency specifier:
91+
The same approach works when adding one workspace as a dependency of another.
92+
If you want to add workspace **b** as a dependency of workspace **a**, run:
9293

9394
```
94-
npm install b@workspace:* -w a
95+
npm install b -w a
9596
```
9697

97-
This will add an entry to workspace **a**'s `package.json` like:
98+
npm will detect that **b** is a workspace and automatically symlink it rather
99+
than fetching it from the registry. The resulting entry in workspace **a**'s
100+
`package.json` will use a standard version range:
98101

99102
```json
100103
{
101104
"dependencies": {
102-
"b": "workspace:*"
105+
"b": "^1.0.0"
103106
}
104107
}
105108
```
106109

107-
The `workspace:` protocol tells npm to link to the local workspace rather than fetching from the registry. The `*` version means it will use whatever version is defined in workspace **b**'s `package.json`.
108-
109110
Note: other installing commands such as `uninstall`, `ci`, etc will also respect the provided `workspace` configuration.
110111

111112
### Using workspaces
Collapse file

‎deps/npm/docs/lib/index.js‎

Copy file name to clipboardExpand all lines: deps/npm/docs/lib/index.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const getCommandByDoc = (docFile, docExt, commandLoader = defaultCommandLoader)
9494
name,
9595
workspaces,
9696
definitions: name === 'npx' ? {} : resolvedDefs,
97-
usage: usage.map(u => `${usagePrefix} ${u}`.trim()).join('\n'),
97+
usage: usage?.map(u => `${usagePrefix} ${u}`.trim()).join('\n'),
9898
}
9999
}
100100

Collapse file

‎deps/npm/docs/output/commands/npm-access.html‎

Copy file name to clipboardExpand all lines: deps/npm/docs/output/commands/npm-access.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@
186186

187187
<section id="content">
188188
<header class="title">
189-
<h1 id="----npm-access----11110">
189+
<h1 id="----npm-access----11111">
190190
<span>npm-access</span>
191-
<span class="version">@11.11.0</span>
191+
<span class="version">@11.11.1</span>
192192
</h1>
193193
<span class="description">Set access level on published packages</span>
194194
</header>
Collapse file

‎deps/npm/docs/output/commands/npm-adduser.html‎

Copy file name to clipboardExpand all lines: deps/npm/docs/output/commands/npm-adduser.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@
186186

187187
<section id="content">
188188
<header class="title">
189-
<h1 id="----npm-adduser----11110">
189+
<h1 id="----npm-adduser----11111">
190190
<span>npm-adduser</span>
191-
<span class="version">@11.11.0</span>
191+
<span class="version">@11.11.1</span>
192192
</h1>
193193
<span class="description">Add a registry user account</span>
194194
</header>
Collapse file

‎deps/npm/docs/output/commands/npm-audit.html‎

Copy file name to clipboardExpand all lines: deps/npm/docs/output/commands/npm-audit.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@
186186

187187
<section id="content">
188188
<header class="title">
189-
<h1 id="----npm-audit----11110">
189+
<h1 id="----npm-audit----11111">
190190
<span>npm-audit</span>
191-
<span class="version">@11.11.0</span>
191+
<span class="version">@11.11.1</span>
192192
</h1>
193193
<span class="description">Run a security audit</span>
194194
</header>
Collapse file

‎deps/npm/docs/output/commands/npm-bugs.html‎

Copy file name to clipboardExpand all lines: deps/npm/docs/output/commands/npm-bugs.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@
186186

187187
<section id="content">
188188
<header class="title">
189-
<h1 id="----npm-bugs----11110">
189+
<h1 id="----npm-bugs----11111">
190190
<span>npm-bugs</span>
191-
<span class="version">@11.11.0</span>
191+
<span class="version">@11.11.1</span>
192192
</h1>
193193
<span class="description">Report bugs for a package in a web browser</span>
194194
</header>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.