libnpmexec 10.2.4 → 10.2.6-pre.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +2 -2
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -72,12 +72,12 @@ const missingFromTree = async ({ spec, tree, flatOptions, isNpxTree, shallow })
72
72
  // non-registry spec, or a specific tag, or name only in npx tree. Look up
73
73
  // manifest and check resolved to see if it's in the tree.
74
74
  const manifest = await getManifest(spec, flatOptions)
75
- if (spec.type === 'directory') {
75
+ if (spec.type === 'directory' && !isNpxTree) {
76
76
  return { manifest }
77
77
  }
78
78
  const nodesByManifest = tree.inventory.query('packageName', manifest.name)
79
79
  for (const node of nodesByManifest) {
80
- if (node.package.resolved === manifest._resolved) {
80
+ if (node.package.resolved === manifest._resolved || node.realpath === manifest._resolved) {
81
81
  // we have a package by the same name and the same resolved destination, nothing to add.
82
82
  return { node }
83
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libnpmexec",
3
- "version": "10.2.4",
3
+ "version": "10.2.6-pre.0.0",
4
4
  "files": [
5
5
  "bin/",
6
6
  "lib/"
@@ -61,7 +61,7 @@
61
61
  },
62
62
  "dependencies": {
63
63
  "@gar/promise-retry": "^1.0.0",
64
- "@npmcli/arborist": "^9.4.1",
64
+ "@npmcli/arborist": "^10.0.0-pre.0.0",
65
65
  "@npmcli/package-json": "^7.0.0",
66
66
  "@npmcli/run-script": "^10.0.0",
67
67
  "ci-info": "^4.0.0",