libnpmexec
Advanced tools
+5
-1
@@ -90,4 +90,6 @@ 'use strict' | ||
| // see if the package.json at `path` has an entry that matches `cmd` | ||
| // the path is a known-local directory, not a user-supplied dep, so | ||
| // allow-directory must not gate this introspection | ||
| const hasPkgBin = (path, cmd, flatOptions) => | ||
| pacote.manifest(path, flatOptions) | ||
| pacote.manifest(path, { ...flatOptions, allowDirectory: 'all' }) | ||
| .then(manifest => manifest?.bin?.[cmd]).catch(() => null) | ||
@@ -151,2 +153,4 @@ | ||
| flatOptions.installLinks = false | ||
| // self-execution of a local bin, not a directory dep install | ||
| flatOptions.allowDirectory = 'all' | ||
| // args[0] will exist when the package is installed | ||
@@ -153,0 +157,0 @@ packages.push(p) |
+2
-2
| { | ||
| "name": "libnpmexec", | ||
| "version": "10.2.8", | ||
| "version": "10.2.9", | ||
| "files": [ | ||
@@ -64,3 +64,3 @@ "bin/", | ||
| "@gar/promise-retry": "^1.0.0", | ||
| "@npmcli/arborist": "^9.6.0", | ||
| "@npmcli/arborist": "^9.7.0", | ||
| "@npmcli/package-json": "^7.0.0", | ||
@@ -67,0 +67,0 @@ "@npmcli/run-script": "^10.0.0", |
24573
1.08%570
0.71%Updated