Skip to content

Commit

Permalink
docs: fix refs to ws shorthand
Browse files Browse the repository at this point in the history
Normalizes usage of `--ws` in docs.

Fixes: npm/statusboard#313

PR-URL: #3109
Credit: @ruyadorno
Close: #3109
Reviewed-by: @wraithgar
  • Loading branch information
ruyadorno committed Apr 22, 2021
1 parent c93f1c3 commit c4ff4bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/content/commands/npm-exec.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ npm exec -- <pkg>[@<version>] [args...]
npm exec --package=<pkg>[@<version>] -- <cmd> [args...]
npm exec -c '<cmd> [args...]'
npm exec --package=foo -c '<cmd> [args...]'
npm exec [-ws] [-w <workspace-name] [args...]
npm exec [--ws] [-w <workspace-name] [args...]

npx <pkg>[@<specifier>] [args...]
npx -p <pkg>[@<specifier>] <cmd> [args...]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -275,7 +275,7 @@ children workspaces)

#### workspaces

* Alias: `-ws`
* Alias: `--ws`
* Type: Boolean
* Default: `false`

Expand Down
2 changes: 1 addition & 1 deletion docs/content/commands/npm-run-script.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ children workspaces)

#### workspaces

* Alias: `-ws`
* Alias: `--ws`
* Type: Boolean
* Default: `false`

Expand Down

0 comments on commit c4ff4bc

Please sign in to comment.