You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/content/using-npm/dependency-selectors.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ The [`npm query`](/commands/npm-query) commmand exposes a new dependency selecto
41
41
-`.dev` dependency found in the `devDependencies` section of `package.json`, or is a child of said dependency
42
42
-`.optional` dependency found in the `optionalDependencies` section of `package.json`, or has `"optional": true` set in its entry in the `peerDependenciesMeta` section of `package.json`, or a child of said dependency
43
43
-`.peer` dependency found in the `peerDependencies` section of `package.json`
44
-
-`.workspace` dependency found in the `workspaces` section of `package.json`
44
+
-`.workspace` dependency found in the [`workspaces`](https://docs.npmjs.com/cli/v8/using-npm/workspaces) section of `package.json`
45
45
-`.bundled` dependency found in the `bundleDependencies` section of `package.json`, or is a child of said dependency
46
46
47
47
#### Pseudo Selectors
@@ -52,9 +52,9 @@ The [`npm query`](/commands/npm-query) commmand exposes a new dependency selecto
52
52
-[`:scope`](https://developer.mozilla.org/en-US/docs/Web/CSS/:scope) matches node/dependency it was queried against
53
53
-[`:empty`](https://developer.mozilla.org/en-US/docs/Web/CSS/:empty) when a dependency has no dependencies
54
54
-[`:private`](https://docs.npmjs.com/cli/v8/configuring-npm/package-json#private) when a dependency is private
55
-
-`:link` when a dependency is linked
56
-
-`:deduped` when a dependency has been deduped
57
-
-`:override` when a dependency is an override
55
+
-`:link` when a dependency is linked (for instance, workspaces or packages manually [`linked`](https://docs.npmjs.com/cli/v8/commands/npm-link)
56
+
-`:deduped` when a dependency has been deduped (note that this does *not* always mean the dependency has been hoisted to the root of node_modules)
57
+
-`:override` when a dependency is an override (not implemented yet)
58
58
-`:extraneous` when a dependency exists but is not defined as a dependency of any node
59
59
-`:invalid` when a dependency version is out of its ancestors specified range
60
60
-`:missing` when a dependency is not found on disk
0 commit comments