Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(workspaces): --include-workspace-root #3587

Closed
wants to merge 107 commits into from
Closed
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
726b61c
feat(workspaces): --include-workspace-root
wraithgar Jul 27, 2021
0d2ce88
fixup! feat(workspaces): --include-workspace-root
wraithgar Aug 11, 2021
47a3d18
fix(package): add map-workspaces to bundleDependencies
wraithgar Aug 11, 2021
5bebf28
tar@6.1.8
wraithgar Aug 11, 2021
b88f770
@npmcli/arborist@2.8.1
wraithgar Aug 12, 2021
d465ef6
chore(smoke-tests): rebuild snapshots
wraithgar Aug 12, 2021
f7905cc
docs: changelog for v7.20.6
wraithgar Aug 12, 2021
2591e67
update AUTHORS
wraithgar Aug 12, 2021
59b9851
7.20.6
wraithgar Aug 12, 2021
32e88c9
fix(did-you-mean): switch levenshtein libraries
wraithgar Aug 11, 2021
4314490
fix(docs): revert auto-generated portion of docs
wraithgar Aug 16, 2021
22f3bbb
chore(docs): add more 'autogenerated' comments
isaacs Aug 16, 2021
7a58264
chore(ci): check that docs are up to date in ci
isaacs Aug 16, 2021
487731c
fix(logging): sanitize logged argv
wraithgar Aug 17, 2021
df57f0d
@npmcli/run-script@1.8.6
wraithgar Aug 17, 2021
8183976
normalize-package-data@3.0.3
wraithgar Aug 18, 2021
ff34d6c
feat(cache): initial implementation of ls and rm
fritzy Jul 29, 2021
68a19bb
fix(error-message): look for er.path not er.file
wraithgar Aug 18, 2021
f077724
init-package-json@2.0.4
wraithgar Aug 18, 2021
991a3bd
read-package-json@4.0.0
wraithgar Aug 18, 2021
e9e5ee5
@npmcli/arborist@2.8.2
wraithgar Aug 19, 2021
b6f40b5
tar@6.1.10
wraithgar Aug 19, 2021
ff6626a
fix(docs): update npm-publish access flag info
austincho Aug 8, 2021
218caca
is-core-module@2.6.0
wraithgar Aug 19, 2021
7ac621c
smart-buffer@4.2.0
wraithgar Aug 19, 2021
94f92de
make-fetch-happen@9.0.5
wraithgar Aug 19, 2021
71cdfd8
spdx-license-ids@3.0.10
wraithgar Aug 19, 2021
771a1cb
chore(tests): fix snapshots
wraithgar Aug 19, 2021
06461ec
docs: changelog for v7.21.0
wraithgar Aug 19, 2021
0b2cd9d
update AUTHORS
wraithgar Aug 19, 2021
30a9844
7.21.0
wraithgar Aug 19, 2021
9b0c034
chore(deps): prune extraneous deps
wraithgar Aug 19, 2021
e387853
make-fetch-happen@9.1.0
wraithgar Aug 24, 2021
52401fd
chore: update config snapshot when manually making docs
isaacs Aug 19, 2021
957fa60
docs: clarify uninstall lifecycle script
fritzy Aug 23, 2021
824ca75
fixup! use correct config item
wraithgar Aug 24, 2021
145f70c
read-package-json@4.0.1
wraithgar Aug 26, 2021
1e8fd79
chore: eslint-plugin-import@2.24.2
wraithgar Aug 26, 2021
e8b59ab
chore: fix gitHead snapshots
wraithgar Aug 26, 2021
eb1fbb7
chore: fix gitHead snapshots again
wraithgar Aug 26, 2021
3f4d371
tar@6.1.11
wraithgar Aug 26, 2021
4e52217
fix(config): respect --global, --package-lock-only
nlf Aug 24, 2021
7af36bb
tests(config): fix snapshot cleaner
wraithgar Aug 26, 2021
e63a942
cacache@15.3.0
wraithgar Aug 26, 2021
c482bc4
docs: changelog for v7.21.1
fritzy Aug 26, 2021
3e8ada5
7.21.1
fritzy Aug 26, 2021
1fa549d
deps: @npmcli/config@2.3.0
nlf Aug 31, 2021
6f431fe
docs: Fix one “see also” link
tripu Aug 27, 2021
e91578d
deps: minpass-fetch@1.4.1
wraithgar Aug 31, 2021
6125db5
deps: are-we-there-yet@1.1.6
wraithgar Sep 1, 2021
033e948
deps: read-package-json@4.1.1
lukekarrys Sep 1, 2021
0dcda73
deps: string_decoder@1.3.0
lukekarrys Sep 1, 2021
4b91341
deps: npmlog@5.0.1
wraithgar Sep 2, 2021
876c755
@npmcli/arborist@2.8.3
wraithgar Sep 2, 2021
b0fe9e1
docs: changelog for v7.22.0
lukekarrys Sep 2, 2021
d59e2ee
update AUTHORS
lukekarrys Sep 2, 2021
d6c651c
7.22.0
lukekarrys Sep 2, 2021
64f7d1a
docs(contributing): add note on changes to tooling
darcyclarke Sep 8, 2021
eda9162
docs: Add --if-present flag documentation to workspaces
Matsuuu Sep 3, 2021
1ad0938
fix(error-message): clean urls from 404 error
wraithgar Sep 9, 2021
6c12500
feat(install): very strict global npm engines
wraithgar Sep 9, 2021
91a5181
docs: changelog for v7.23.0
wraithgar Sep 9, 2021
e962020
update AUTHORS
wraithgar Sep 9, 2021
d57b43d
7.23.0
wraithgar Sep 9, 2021
c7787b3
chore: bundle npm-install-checks
wraithgar Sep 9, 2021
1fbbe1e
chore: bundled npm-install-checks in lockfile too
wraithgar Sep 9, 2021
ac8e4ad
deps: init-package-json@2.0.5
wraithgar Sep 9, 2021
5974397
fix(did-you-mean): succeed if cwd is not a package
wraithgar Sep 13, 2021
0320bd7
fix(view): Show the correct publish date for versions selected by range
andersk Sep 13, 2021
e4a5218
fix(install.sh): don't remove old npm first
wraithgar Sep 13, 2021
291d977
chore: Fix typos in CONTRIBUTING
shadowspawn Sep 14, 2021
b4aac34
fix(config): user-agent properly shows ci
wraithgar Sep 14, 2021
b807cd6
fix(search): return valid json for no results
AyushRawal Sep 11, 2021
4d93b48
fix(docs): use correct hyperlink to package-json
nategreen Sep 15, 2021
2def17a
fix(install): use configured registry when checking manifest
yacoman89 Sep 15, 2021
371655a
deps: minipass@3.1.5
wraithgar Sep 15, 2021
ca792ac
fix(logs): clean args for failed commands
wraithgar Sep 15, 2021
a3bb2a9
docs: changelog for v7.24.0
fritzy Sep 16, 2021
21dd300
update AUTHORS
fritzy Sep 16, 2021
2c74190
7.24.0
fritzy Sep 16, 2021
eafd55e
deps: glob@7.2.0
wraithgar Sep 23, 2021
6535dd9
chore: correct a typo in lib/deprecate.js
felixonmars Sep 16, 2021
dae5ce3
docs: document special meaning of registry.npmjs.com
Sep 22, 2021
1be8d41
deps: socks-proxy-agent@6.1.0
wraithgar Sep 23, 2021
7b041e9
docs: changelog for v7.24.1
wraithgar Sep 23, 2021
6b996e5
update AUTHORS
wraithgar Sep 23, 2021
6ae8cbe
7.24.1
wraithgar Sep 23, 2021
69ab10b
deps: is-core-module@2.7.0
wraithgar Sep 27, 2021
56d6cfd
fix: encode url before opening
wraithgar Sep 27, 2021
075fe50
fix: restore exit code on "npm outdated"
gfyoung Sep 26, 2021
4d2330e
updates to usage, added --no-workspaces cases
fritzy Sep 28, 2021
8dd8999
added flatten approach for noWorkspaces
fritzy Sep 28, 2021
e94ddea
deps: @npmcli/arborist@2.9.0
wraithgar Sep 28, 2021
dbb90f7
fix: use Intl.Collator for string sorting when available
isaacs Sep 28, 2021
f425950
docs: remove npm Enterprise from documentation
Sep 27, 2021
4ef9bb1
test coverage 100%
fritzy Sep 29, 2021
5051f78
test coverage complete
fritzy Sep 30, 2021
e585eac
added missing modules
fritzy Sep 30, 2021
bb0b2da
fix(docs): add note about workspace script order
behnammodi Aug 31, 2021
43266c1
feat(workspaces): --include-workspace-root --no-workspaces
wraithgar Jul 27, 2021
3d379e7
fixup temp
fritzy Sep 30, 2021
af42d82
Update lib/utils/config/definitions.js
fritzy Sep 30, 2021
08063f8
Update lib/utils/config/definitions.js
fritzy Sep 30, 2021
4e55f24
feedback and coverage oversight
fritzy Sep 30, 2021
b8d2fd4
fix formatting in config descriptions
isaacs Sep 30, 2021
ff429b2
wip merge
fritzy Sep 30, 2021
45c76f1
wip merge
wraithgar Sep 30, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 14 additions & 4 deletions docs/content/commands/npm-audit.md
Expand Up @@ -294,8 +294,8 @@ Valid values for the `workspace` config are either:

* Workspace names
* Path to a workspace directory
* Path to a parent workspace directory (will result to selecting all of the
nested workspaces)
* Path to a parent workspace directory (will result in selecting all
workspaces within that folder)

When set for the `npm init` command, this may be set to the folder of a
workspace which does not yet exist, to create the folder and set it up as a
Expand All @@ -305,14 +305,24 @@ This value is not exported to the environment for child processes.

#### `workspaces`

* Default: false
* Type: Boolean
* Default: null
* Type: null or Boolean

Enable running a command in the context of **all** the configured
workspaces.

Explicitly setting this to false will cause commands like `install` to
ignore workspaces altogether.

This value is not exported to the environment for child processes.

#### `include-workspace-root`

* Default: false
* Type: Boolean

Include the workspace root when workspaces are enabled for a command.

<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->

### See Also
Expand Down
18 changes: 14 additions & 4 deletions docs/content/commands/npm-dedupe.md
Expand Up @@ -216,8 +216,8 @@ Valid values for the `workspace` config are either:

* Workspace names
* Path to a workspace directory
* Path to a parent workspace directory (will result to selecting all of the
nested workspaces)
* Path to a parent workspace directory (will result in selecting all
workspaces within that folder)

When set for the `npm init` command, this may be set to the folder of a
workspace which does not yet exist, to create the folder and set it up as a
Expand All @@ -227,14 +227,24 @@ This value is not exported to the environment for child processes.

#### `workspaces`

* Default: false
* Type: Boolean
* Default: null
* Type: null or Boolean

Enable running a command in the context of **all** the configured
workspaces.

Explicitly setting this to false will cause commands like `install` to
ignore workspaces altogether.

This value is not exported to the environment for child processes.

#### `include-workspace-root`

* Default: false
* Type: Boolean

Include the workspace root when workspaces are enabled for a command.

<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->

### See Also
Expand Down
18 changes: 14 additions & 4 deletions docs/content/commands/npm-diff.md
Expand Up @@ -255,8 +255,8 @@ Valid values for the `workspace` config are either:

* Workspace names
* Path to a workspace directory
* Path to a parent workspace directory (will result to selecting all of the
nested workspaces)
* Path to a parent workspace directory (will result in selecting all
workspaces within that folder)

When set for the `npm init` command, this may be set to the folder of a
workspace which does not yet exist, to create the folder and set it up as a
Expand All @@ -266,14 +266,24 @@ This value is not exported to the environment for child processes.

#### `workspaces`

* Default: false
* Type: Boolean
* Default: null
* Type: null or Boolean

Enable running a command in the context of **all** the configured
workspaces.

Explicitly setting this to false will cause commands like `install` to
ignore workspaces altogether.

This value is not exported to the environment for child processes.

#### `include-workspace-root`

* Default: false
* Type: Boolean

Include the workspace root when workspaces are enabled for a command.

<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
## See Also

Expand Down
18 changes: 14 additions & 4 deletions docs/content/commands/npm-dist-tag.md
Expand Up @@ -105,8 +105,8 @@ Valid values for the `workspace` config are either:

* Workspace names
* Path to a workspace directory
* Path to a parent workspace directory (will result to selecting all of the
nested workspaces)
* Path to a parent workspace directory (will result in selecting all
workspaces within that folder)

When set for the `npm init` command, this may be set to the folder of a
workspace which does not yet exist, to create the folder and set it up as a
Expand All @@ -116,14 +116,24 @@ This value is not exported to the environment for child processes.

#### `workspaces`

* Default: false
* Type: Boolean
* Default: null
* Type: null or Boolean

Enable running a command in the context of **all** the configured
workspaces.

Explicitly setting this to false will cause commands like `install` to
ignore workspaces altogether.

This value is not exported to the environment for child processes.

#### `include-workspace-root`

* Default: false
* Type: Boolean

Include the workspace root when workspaces are enabled for a command.

<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->

### See Also
Expand Down
18 changes: 14 additions & 4 deletions docs/content/commands/npm-docs.md
Expand Up @@ -56,8 +56,8 @@ Valid values for the `workspace` config are either:

* Workspace names
* Path to a workspace directory
* Path to a parent workspace directory (will result to selecting all of the
nested workspaces)
* Path to a parent workspace directory (will result in selecting all
workspaces within that folder)

When set for the `npm init` command, this may be set to the folder of a
workspace which does not yet exist, to create the folder and set it up as a
Expand All @@ -67,14 +67,24 @@ This value is not exported to the environment for child processes.

#### `workspaces`

* Default: false
* Type: Boolean
* Default: null
* Type: null or Boolean

Enable running a command in the context of **all** the configured
workspaces.

Explicitly setting this to false will cause commands like `install` to
ignore workspaces altogether.

This value is not exported to the environment for child processes.

#### `include-workspace-root`

* Default: false
* Type: Boolean

Include the workspace root when workspaces are enabled for a command.

<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->

### See Also
Expand Down
18 changes: 14 additions & 4 deletions docs/content/commands/npm-exec.md
Expand Up @@ -157,8 +157,8 @@ Valid values for the `workspace` config are either:

* Workspace names
* Path to a workspace directory
* Path to a parent workspace directory (will result to selecting all of the
nested workspaces)
* Path to a parent workspace directory (will result in selecting all
workspaces within that folder)

When set for the `npm init` command, this may be set to the folder of a
workspace which does not yet exist, to create the folder and set it up as a
Expand All @@ -168,14 +168,24 @@ This value is not exported to the environment for child processes.

#### `workspaces`

* Default: false
* Type: Boolean
* Default: null
* Type: null or Boolean

Enable running a command in the context of **all** the configured
workspaces.

Explicitly setting this to false will cause commands like `install` to
ignore workspaces altogether.

This value is not exported to the environment for child processes.

#### `include-workspace-root`

* Default: false
* Type: Boolean

Include the workspace root when workspaces are enabled for a command.

<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->

### Examples
Expand Down
4 changes: 2 additions & 2 deletions docs/content/commands/npm-explain.md
Expand Up @@ -81,8 +81,8 @@ Valid values for the `workspace` config are either:

* Workspace names
* Path to a workspace directory
* Path to a parent workspace directory (will result to selecting all of the
nested workspaces)
* Path to a parent workspace directory (will result in selecting all
workspaces within that folder)

When set for the `npm init` command, this may be set to the folder of a
workspace which does not yet exist, to create the folder and set it up as a
Expand Down
18 changes: 14 additions & 4 deletions docs/content/commands/npm-find-dupes.md
Expand Up @@ -146,8 +146,8 @@ Valid values for the `workspace` config are either:

* Workspace names
* Path to a workspace directory
* Path to a parent workspace directory (will result to selecting all of the
nested workspaces)
* Path to a parent workspace directory (will result in selecting all
workspaces within that folder)

When set for the `npm init` command, this may be set to the folder of a
workspace which does not yet exist, to create the folder and set it up as a
Expand All @@ -157,14 +157,24 @@ This value is not exported to the environment for child processes.

#### `workspaces`

* Default: false
* Type: Boolean
* Default: null
* Type: null or Boolean

Enable running a command in the context of **all** the configured
workspaces.

Explicitly setting this to false will cause commands like `install` to
ignore workspaces altogether.

This value is not exported to the environment for child processes.

#### `include-workspace-root`

* Default: false
* Type: Boolean

Include the workspace root when workspaces are enabled for a command.

<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->

### See Also
Expand Down
4 changes: 2 additions & 2 deletions docs/content/commands/npm-fund.md
Expand Up @@ -112,8 +112,8 @@ Valid values for the `workspace` config are either:

* Workspace names
* Path to a workspace directory
* Path to a parent workspace directory (will result to selecting all of the
nested workspaces)
* Path to a parent workspace directory (will result in selecting all
workspaces within that folder)

When set for the `npm init` command, this may be set to the folder of a
workspace which does not yet exist, to create the folder and set it up as a
Expand Down
11 changes: 7 additions & 4 deletions docs/content/commands/npm-init.md
Expand Up @@ -193,8 +193,8 @@ Valid values for the `workspace` config are either:

* Workspace names
* Path to a workspace directory
* Path to a parent workspace directory (will result to selecting all of the
nested workspaces)
* Path to a parent workspace directory (will result in selecting all
workspaces within that folder)

When set for the `npm init` command, this may be set to the folder of a
workspace which does not yet exist, to create the folder and set it up as a
Expand All @@ -204,12 +204,15 @@ This value is not exported to the environment for child processes.

#### `workspaces`

* Default: false
* Type: Boolean
* Default: null
* Type: null or Boolean

Enable running a command in the context of **all** the configured
workspaces.

Explicitly setting this to false will cause commands like `install` to
ignore workspaces altogether.

This value is not exported to the environment for child processes.

<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
Expand Down
18 changes: 14 additions & 4 deletions docs/content/commands/npm-install-test.md
Expand Up @@ -201,8 +201,8 @@ Valid values for the `workspace` config are either:

* Workspace names
* Path to a workspace directory
* Path to a parent workspace directory (will result to selecting all of the
nested workspaces)
* Path to a parent workspace directory (will result in selecting all
workspaces within that folder)

When set for the `npm init` command, this may be set to the folder of a
workspace which does not yet exist, to create the folder and set it up as a
Expand All @@ -212,14 +212,24 @@ This value is not exported to the environment for child processes.

#### `workspaces`

* Default: false
* Type: Boolean
* Default: null
* Type: null or Boolean

Enable running a command in the context of **all** the configured
workspaces.

Explicitly setting this to false will cause commands like `install` to
ignore workspaces altogether.

This value is not exported to the environment for child processes.

#### `include-workspace-root`

* Default: false
* Type: Boolean

Include the workspace root when workspaces are enabled for a command.

<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->

### See Also
Expand Down
18 changes: 14 additions & 4 deletions docs/content/commands/npm-install.md
Expand Up @@ -585,8 +585,8 @@ Valid values for the `workspace` config are either:

* Workspace names
* Path to a workspace directory
* Path to a parent workspace directory (will result to selecting all of the
nested workspaces)
* Path to a parent workspace directory (will result in selecting all
workspaces within that folder)

When set for the `npm init` command, this may be set to the folder of a
workspace which does not yet exist, to create the folder and set it up as a
Expand All @@ -596,14 +596,24 @@ This value is not exported to the environment for child processes.

#### `workspaces`

* Default: false
* Type: Boolean
* Default: null
* Type: null or Boolean

Enable running a command in the context of **all** the configured
workspaces.

Explicitly setting this to false will cause commands like `install` to
ignore workspaces altogether.

This value is not exported to the environment for child processes.

#### `include-workspace-root`

* Default: false
* Type: Boolean

Include the workspace root when workspaces are enabled for a command.

<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->

### Algorithm
Expand Down