We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64f7d1a commit eda9162Copy full SHA for eda9162
docs/content/using-npm/workspaces.md
@@ -176,6 +176,16 @@ npm run test --workspaces
176
177
Will run the `test` script in both `./packages/a` and `./packages/b`.
178
179
+### Ignoring missing scripts
180
+
181
+It is not required for all of the workspaces to implement scripts run with the `npm run` command.
182
183
+By running the command with the `--if-present` flag, npm will ignore workspaces missing target script.
184
185
+```
186
+npm run test --workspaces --if-present
187
188
189
### See also
190
191
* [npm install](/commands/npm-install)
0 commit comments