Skip to content

Commit 707b998

Browse files
committed
CLI documentation update from CI
1 parent edc3567 commit 707b998

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

content/cli/v8/commands/npm-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,5 +242,5 @@ This value is not exported to the environment for child processes.
242242
<!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
243243
## See Also
244244

245-
* [dependency selector](/cli/v8/using-npm/dependency-selector)
245+
* [dependency selectors](/cli/v8/using-npm/dependency-selectors)
246246

content/cli/v8/using-npm/dependency-selectors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const arb = new Arborist({})
152152

153153
```js
154154
// root-level
155-
arb.loadActual((tree) => {
155+
arb.loadActual().then(async (tree) => {
156156
// query all production dependencies
157157
const results = await tree.querySelectorAll('.prod')
158158
console.log(results)
@@ -161,7 +161,7 @@ arb.loadActual((tree) => {
161161

162162
```js
163163
// iterative
164-
arb.loadActual((tree) => {
164+
arb.loadActual().then(async (tree) => {
165165
// query for the deduped version of react
166166
const results = await tree.querySelectorAll('#react:not(:deduped)')
167167
// query the deduped react for git deps

0 commit comments

Comments
 (0)