@pnpm/package-bins
Advanced tools
Comparing version 4.0.11 to 4.1.0
# @pnpm/package-bins | ||
## 4.1.0 | ||
### Minor Changes | ||
- d853fb14a: Find all files inside the bin directory. | ||
## 4.0.11 | ||
@@ -4,0 +10,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const util_1 = require("util"); | ||
const graceful_fs_1 = require("graceful-fs"); | ||
const fastGlob = require("fast-glob"); | ||
const path = require("path"); | ||
const isSubdir = require("is-subdir"); | ||
const pFilter = require("p-filter"); | ||
const readdirP = util_1.promisify(graceful_fs_1.readdir); | ||
const statP = util_1.promisify(graceful_fs_1.stat); | ||
async function binify(manifest, pkgPath) { | ||
@@ -18,6 +14,6 @@ var _a; | ||
const files = await findFiles(binDir); | ||
return pFilter(files.map((file) => ({ | ||
name: file, | ||
return files.map((file) => ({ | ||
name: path.basename(file), | ||
path: path.join(binDir, file), | ||
})), async (cmd) => (await statP(cmd.path)).isFile()); | ||
})); | ||
} | ||
@@ -29,3 +25,7 @@ return []; | ||
try { | ||
return await readdirP(dir); | ||
return await fastGlob('**', { | ||
cwd: dir, | ||
onlyFiles: true, | ||
followSymbolicLinks: false, | ||
}); | ||
} | ||
@@ -32,0 +32,0 @@ catch (err) { |
{ | ||
"name": "@pnpm/package-bins", | ||
"version": "4.0.11", | ||
"version": "4.1.0", | ||
"description": "Returns bins of a package", | ||
@@ -35,5 +35,4 @@ "main": "lib/index.js", | ||
"@pnpm/types": "6.4.0", | ||
"graceful-fs": "4.2.4", | ||
"is-subdir": "^1.1.1", | ||
"p-filter": "^2.1.0" | ||
"fast-glob": "^3.2.4", | ||
"is-subdir": "^1.1.1" | ||
}, | ||
@@ -40,0 +39,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
5763
242350
0
+ Addedfast-glob@^3.2.4
+ Added@nodelib/fs.scandir@2.1.5(transitive)
+ Added@nodelib/fs.stat@2.0.5(transitive)
+ Added@nodelib/fs.walk@1.2.8(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedfast-glob@3.3.2(transitive)
+ Addedfastq@1.17.1(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedmerge2@1.4.1(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedqueue-microtask@1.2.3(transitive)
+ Addedreusify@1.0.4(transitive)
+ Addedrun-parallel@1.2.0(transitive)
+ Addedto-regex-range@5.0.1(transitive)
- Removedgraceful-fs@4.2.4
- Removedp-filter@^2.1.0
- Removedgraceful-fs@4.2.4(transitive)
- Removedp-filter@2.1.0(transitive)
- Removedp-map@2.1.0(transitive)