From 8043ac9f72dd94c381c18eb6eb6c85beed4acc3b Mon Sep 17 00:00:00 2001 From: Aron Date: Mon, 21 Nov 2022 14:57:51 +0800 Subject: [PATCH] docs: run the comand for directory workspaces (#5875) --- docs/lib/content/using-npm/workspaces.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/lib/content/using-npm/workspaces.md b/docs/lib/content/using-npm/workspaces.md index 5b68ef8ce9d3d..bbfa2d8817eb2 100644 --- a/docs/lib/content/using-npm/workspaces.md +++ b/docs/lib/content/using-npm/workspaces.md @@ -176,6 +176,11 @@ command-line in order to target multiple workspaces, e.g: npm run test --workspace=a --workspace=b ``` +Or run the command for each workspace within the 'packages' folder: +``` +npm run test --workspace=packages +``` + It's also possible to use the `workspaces` (plural) configuration option to enable the same behavior but running that command in the context of **all** configured workspaces. e.g: