Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornlf <quitlahok@gmail.com>2022-08-04 23:44:31 +0300
committerGar <wraithgar@github.com>2022-08-08 18:46:41 +0300
commit9078e27cef0233d6fc81e0ca824a34fd7685d93c (patch)
treecefef233cdd21facc5a4c4e53021646947aae7c9
parent96b6781086143d7285c2c5bf7808c24b2c87e4dd (diff)
fix(query): tell arborist to load an actual tree, not a virtual one
-rw-r--r--lib/commands/query.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/commands/query.js b/lib/commands/query.js
index 371fddef9..60294acaf 100644
--- a/lib/commands/query.js
+++ b/lib/commands/query.js
@@ -58,6 +58,7 @@ class Query extends BaseCommand {
const opts = {
...this.npm.flatOptions,
path: where,
+ forceActual: true,
}
const arb = new Arborist(opts)
const tree = await arb.loadActual(opts)