CLI documentation update from CI

CI User committed Sep 10, 2021 at 02:26 UTC c9b24ddee8366075c9b638e1c62f91351de5bbe6
2 files changed +11 -1
cli/v7
+1 -1
@@ -1 +1 @@
1 -Subproject commit d6c651c050634a89f25846340a440dfb49755f82
1 +Subproject commit d57b43db38211c6e37ed4482d81ca75ad9654cf0
content/cli/v7/using-npm/workspaces.md
+10
@@ -184,6 +184,16 @@ npm run test --workspaces
184
185 Will run the `test` script in both `./packages/a` and `./packages/b`.
186
187 +### Ignoring missing scripts
188 +
189 +It is not required for all of the workspaces to implement scripts run with the `npm run` command.
190 +
191 +By running the command with the `--if-present` flag, npm will ignore workspaces missing target script.
192 +
193 +```
194 +npm run test --workspaces --if-present
195 +```
196 +
197 ### See also
198
199 * [npm install](/cli/v7/commands/npm-install)