CLI documentation update from CI
npm CLI robot committed
Nov 30, 2022 at 23:45 UTC
3f8a21f05c7dbf28b8d6adda27baf6cdddd81f89
7 files changed
+37
-8
content/cli/v9/commands/npm-exec.md
+5
-4
@@ -64,10 +64,11 @@ specified multiple times, to execute the supplied command in an environment
64
where all specified packages are available.
65
66
If any requested packages are not present in the local project
67
-dependencies, then they are installed to a folder in the npm cache, which
68
-is added to the `PATH` environment variable in the executed process. A
69
-prompt is printed (which can be suppressed by providing either `--yes` or
70
-`--no`).
67
+dependencies, then a prompt is printed, which can be suppressed by
68
+providing either `--yes` or `--no`. When standard input is not a TTY or a
69
+CI environment is detected, `--yes` is assumed. The requested packages are
70
+installed to a folder in the npm cache, which is added to the `PATH`
71
+environment variable in the executed process.
72
73
Package names provided without a specifier will be matched with whatever
74
version exists in the local project. Package names with a specifier will
content/cli/v9/commands/npm-ls.md
+1
-1
@@ -58,7 +58,7 @@ packages will *also* show the paths to the specified packages. For
58
example, running `npm ls promzard` in npm's source tree will show:
59
60
```bash
61
-npm@9.1.2 /path/to/npm
61
+npm@9.1.3 /path/to/npm
62
└─┬ init-package-json@0.0.4
63
└── promzard@0.1.5
64
```
content/cli/v9/commands/npm.md
+1
-1
@@ -29,7 +29,7 @@ npm
29
30
### Version
31
32
-9.1.2
32
+9.1.3
33
34
### Description
35
content/cli/v9/using-npm/changelog.md
+23
@@ -17,6 +17,29 @@ redirect_from:
17
18
# Changelog
19
20
+## [9.1.3](https://github.com/npm/cli/compare/v9.1.2...v9.1.3) (2022-11-30)
21
+
22
+### Bug Fixes
23
+
24
+* [`ffbdea2`](https://github.com/npm/cli/commit/ffbdea286a08eeaf40ab83eea5bfe0602dc6bbcd) [#5894](https://github.com/npm/cli/pull/5894) npm pack filename on scoped packages (#5894) (@HenryNguyen5)
25
+* [`c26d708`](https://github.com/npm/cli/commit/c26d708428a96da530092759b5ff6d67c7282348) [#5884](https://github.com/npm/cli/pull/5884) validate username at get-identity (#5884) (@sosoba, @nlf)
26
+
27
+### Documentation
28
+
29
+* [`ea948dc`](https://github.com/npm/cli/commit/ea948dceac5cfeef437c97874ab26c3275e75766) [#5881](https://github.com/npm/cli/pull/5881) update description of npm exec (#5881) (@styfle, @wraithgar)
30
+* [`40f2c21`](https://github.com/npm/cli/commit/40f2c213d75a252665311b4f8775d297390aeb70) [#5865](https://github.com/npm/cli/pull/5865) ci-info url (#5865) (@wraithgar)
31
+* [`681a45b`](https://github.com/npm/cli/commit/681a45bb48acd57aa64cb3241ea4915f5a12e029) [#5875](https://github.com/npm/cli/pull/5875) run the comand for directory workspaces (#5875) (@1aron)
32
+* [`681a45b`](https://github.com/npm/cli/commit/681a45bb48acd57aa64cb3241ea4915f5a12e029) [#5875](https://github.com/npm/cli/pull/5875) add workspace directory example (#5875) (@1aron)
33
+
34
+### Dependencies
35
+
36
+* [Workspace](https://github.com/npm/cli/compare/arborist-v6.1.3...arborist-v6.1.4): `@npmcli/arborist@6.1.4`
37
+* [Workspace](https://github.com/npm/cli/compare/libnpmdiff-v5.0.4...libnpmdiff-v5.0.5): `libnpmdiff@5.0.5`
38
+* [Workspace](https://github.com/npm/cli/compare/libnpmexec-v5.0.4...libnpmexec-v5.0.5): `libnpmexec@5.0.5`
39
+* [Workspace](https://github.com/npm/cli/compare/libnpmfund-v4.0.4...libnpmfund-v4.0.5): `libnpmfund@4.0.5`
40
+* [Workspace](https://github.com/npm/cli/compare/libnpmpack-v5.0.4...libnpmpack-v5.0.5): `libnpmpack@5.0.5`
41
+* [Workspace](https://github.com/npm/cli/compare/libnpmpublish-v7.0.4...libnpmpublish-v7.0.5): `libnpmpublish@7.0.5`
42
+
43
## [9.1.2](https://github.com/npm/cli/compare/v9.1.1...v9.1.2) (2022-11-16)
44
45
### Bug Fixes
content/cli/v9/using-npm/config.md
+1
-1
@@ -309,7 +309,7 @@ npm exec --package yo --package generator-node --call "yo node"
309
310
The name of a continuous integration system. If not set explicitly, npm will
311
detect the current CI environment using the
312
-[`ci-info`](http://npm.im/@npmcli/ci-info) module.
312
+[`ci-info`](http://npm.im/ci-info) module.
313
314
#### `cidr`
315
content/cli/v9/using-npm/workspaces.md
+5
@@ -189,6 +189,11 @@ command-line in order to target multiple workspaces, e.g:
189
npm run test --workspace=a --workspace=b
190
```
191
192
+Or run the command for each workspace within the 'packages' folder:
193
+```
194
+npm run test --workspace=packages
195
+```
196
+
197
It's also possible to use the `workspaces` (plural) configuration option to
198
enable the same behavior but running that command in the context of **all**
199
configured workspaces. e.g:
src/theme/nav.yml
+1
-1
@@ -1053,7 +1053,7 @@
1053
- title: Changelog
1054
url: /cli/v8/using-npm/changelog
1055
description: Changelog notes for each version
1056
- - title: Version 9.1.2 (Latest Release)
1056
+ - title: Version 9.1.3 (Latest Release)
1057
shortName: v9
1058
url: /cli/v9
1059
default: true