Skip to content

Commit 33c4189

Browse files
committed
feat: add run-script workspaces
- Add workspaces-related configs: - workspace: list of workspaces names/dir to filter for - workspaces: boolean value to enable/disable workspaces awareness - adds the proposed note in the docs of each of the commands that are not affected by these configs. - Add workspaces support to `npm run-script` - add ability to serially run lifecycle scripts in workspaces - add ability to list scripts for all workspaces - add colors to `npm run` (no args) output Relates to: npm/rfcs#117 Fixes: npm/statusboard#276 Fixes: npm/statusboard#283 Fixes: npm/statusboard#284 Fixes: npm/statusboard#285 Fixes: npm/statusboard#286 PR-URL: #2864 Credit: @ruyadorno Close: #2864 Reviewed-by: @wraithgar
1 parent 8a38afe commit 33c4189

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+964
-36
lines changed

docs/content/commands/npm-adduser.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ npm adduser [--registry=url] [--scope=@orgname] [--always-auth] [--auth-type=leg
1212
aliases: login, add-user
1313
```
1414

15+
Note: This command is unaware of workspaces.
16+
1517
### Description
1618

1719
Create or verify a user named `<username>` in the specified registry, and

docs/content/commands/npm-bin.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ description: Display npm bin folder
1010
npm bin [-g|--global]
1111
```
1212

13+
Note: This command is unaware of workspaces.
14+
1315
### Description
1416

1517
Print the folder where npm will install executables.

docs/content/commands/npm-cache.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ aliases: npm cache clear, npm cache rm
1818
npm cache verify
1919
```
2020

21+
Note: This command is unaware of workspaces.
22+
2123
### Description
2224

2325
Used to add, list, or clean the npm cache folder.

docs/content/commands/npm-completion.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ description: Tab Completion for npm
1010
source <(npm completion)
1111
```
1212

13+
Note: This command is unaware of workspaces.
14+
1315
### Description
1416

1517
Enables tab-completion in all npm commands.

docs/content/commands/npm-config.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ npm get [<key> [<key> ...]]
1818
alias: c
1919
```
2020
21+
Note: This command is unaware of workspaces.
22+
2123
### Description
2224
2325
npm gets its config settings from the command line, environment

docs/content/commands/npm-deprecate.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ description: Deprecate a version of a package
1010
npm deprecate <pkg>[@<version range>] <message>
1111
```
1212

13+
Note: This command is unaware of workspaces.
14+
1315
### Description
1416

1517
This command will update the npm registry entry for a package, providing a

docs/content/commands/npm-doctor.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ description: Check your npm environment
1010
npm doctor
1111
```
1212

13+
Note: This command is unaware of workspaces.
14+
1315
### Description
1416

1517
`npm doctor` runs a set of checks to ensure that your npm installation has

docs/content/commands/npm-edit.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ description: Edit an installed package
1010
npm edit <pkg>
1111
```
1212

13+
Note: This command is unaware of workspaces.
14+
1315
### Description
1416

1517
Selects a dependency in the current project and opens the package folder in

docs/content/commands/npm-explore.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ description: Browse an installed package
1010
npm explore <pkg> [ -- <command>]
1111
```
1212

13+
Note: This command is unaware of workspaces.
14+
1315
### Description
1416

1517
Spawn a subshell in the directory of the installed package specified.

docs/content/commands/npm-help-search.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ description: Search npm help documentation
1010
npm help-search <text>
1111
```
1212

13+
Note: This command is unaware of workspaces.
14+
1315
### Description
1416

1517
This command will search the npm markdown documentation files for the terms

0 commit comments

Comments
 (0)