From c4ff4bc113c3a5b6ee5d74ab0b1adee95169ed32 Mon Sep 17 00:00:00 2001 From: Ruy Adorno Date: Tue, 20 Apr 2021 17:56:12 -0400 Subject: [PATCH] docs: fix refs to ws shorthand Normalizes usage of `--ws` in docs. Fixes: https://github.com/npm/statusboard/issues/313 PR-URL: https://github.com/npm/cli/pull/3109 Credit: @ruyadorno Close: #3109 Reviewed-by: @wraithgar --- docs/content/commands/npm-exec.md | 6 +++--- docs/content/commands/npm-run-script.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/commands/npm-exec.md b/docs/content/commands/npm-exec.md index 88b98e3bce466..6666d30e883b5 100644 --- a/docs/content/commands/npm-exec.md +++ b/docs/content/commands/npm-exec.md @@ -11,7 +11,7 @@ npm exec -- [@] [args...] npm exec --package=[@] -- [args...] npm exec -c ' [args...]' npm exec --package=foo -c ' [args...]' -npm exec [-ws] [-w [@] [args...] npx -p [@] [args...] @@ -184,7 +184,7 @@ in this example we're using **eslint** to lint any js file found within each workspace folder: ``` -npm exec -ws -- eslint ./*.js +npm exec --ws -- eslint ./*.js ``` #### Filtering workspaces @@ -275,7 +275,7 @@ children workspaces) #### workspaces -* Alias: `-ws` +* Alias: `--ws` * Type: Boolean * Default: `false` diff --git a/docs/content/commands/npm-run-script.md b/docs/content/commands/npm-run-script.md index 076dfd7addcc3..028f8eb15070a 100644 --- a/docs/content/commands/npm-run-script.md +++ b/docs/content/commands/npm-run-script.md @@ -189,7 +189,7 @@ children workspaces) #### workspaces -* Alias: `-ws` +* Alias: `--ws` * Type: Boolean * Default: `false`