@pnpm/link-bins
Advanced tools
Comparing version 7.2.3 to 7.2.4
@@ -44,6 +44,6 @@ "use strict"; | ||
const p_settle_1 = __importDefault(require("p-settle")); | ||
const fromPairs_js_1 = __importDefault(require("ramda/src/fromPairs.js")); | ||
const isEmpty_js_1 = __importDefault(require("ramda/src/isEmpty.js")); | ||
const unnest_js_1 = __importDefault(require("ramda/src/unnest.js")); | ||
const partition_js_1 = __importDefault(require("ramda/src/partition.js")); | ||
const fromPairs_1 = __importDefault(require("ramda/src/fromPairs")); | ||
const isEmpty_1 = __importDefault(require("ramda/src/isEmpty")); | ||
const unnest_1 = __importDefault(require("ramda/src/unnest")); | ||
const partition_1 = __importDefault(require("ramda/src/partition")); | ||
const symlink_dir_1 = __importDefault(require("symlink-dir")); | ||
@@ -67,3 +67,3 @@ const fix_bin_1 = __importDefault(require("bin-links/lib/fix-bin")); | ||
: new Set(Object.keys((0, manifest_utils_1.getAllDependenciesFromManifest)(opts.projectManifest))); | ||
const allCmds = (0, unnest_js_1.default)((await Promise.all(allDeps | ||
const allCmds = (0, unnest_1.default)((await Promise.all(allDeps | ||
.map((alias) => ({ | ||
@@ -85,3 +85,3 @@ depDir: path_1.default.resolve(modulesDir, alias), | ||
function preferDirectCmds(allCmds) { | ||
const [directCmds, hoistedCmds] = (0, partition_js_1.default)((cmd) => cmd.isDirectDependency === true, allCmds); | ||
const [directCmds, hoistedCmds] = (0, partition_1.default)((cmd) => cmd.isDirectDependency === true, allCmds); | ||
const usedDirectCmds = new Set(directCmds.map((directCmd) => directCmd.name)); | ||
@@ -96,3 +96,3 @@ return [ | ||
return []; | ||
const allCmds = (0, unnest_js_1.default)((await Promise.all(pkgs | ||
const allCmds = (0, unnest_1.default)((await Promise.all(pkgs | ||
.map(async (pkg) => getPackageBinsFromManifest(pkg.manifest, pkg.location, pkg.nodeExecPath)))) | ||
@@ -107,5 +107,5 @@ .filter((cmds) => cmds.length)); | ||
await fs_1.promises.mkdir(binsDir, { recursive: true }); | ||
const [cmdsWithOwnName, cmdsWithOtherNames] = (0, partition_js_1.default)(({ ownName }) => ownName, allCmds); | ||
const [cmdsWithOwnName, cmdsWithOtherNames] = (0, partition_1.default)(({ ownName }) => ownName, allCmds); | ||
const results1 = await (0, p_settle_1.default)(cmdsWithOwnName.map(async (cmd) => linkBin(cmd, binsDir, opts))); | ||
const usedNames = (0, fromPairs_js_1.default)(cmdsWithOwnName.map((cmd) => [cmd.name, cmd.name])); | ||
const usedNames = (0, fromPairs_1.default)(cmdsWithOwnName.map((cmd) => [cmd.name, cmd.name])); | ||
const results2 = await (0, p_settle_1.default)(cmdsWithOtherNames.map(async (cmd) => { | ||
@@ -145,3 +145,3 @@ if (usedNames[cmd.name]) { | ||
} | ||
if ((0, isEmpty_js_1.default)(manifest.bin) && !await isFromModules(target)) { | ||
if ((0, isEmpty_1.default)(manifest.bin) && !await isFromModules(target)) { | ||
opts.warn(`Package in ${target} must have a non-empty bin field to get bin linked.`, 'EMPTY_BIN'); | ||
@@ -148,0 +148,0 @@ } |
{ | ||
"name": "@pnpm/link-bins", | ||
"version": "7.2.3", | ||
"version": "7.2.4", | ||
"description": "Link bins to node_modules/.bin", | ||
@@ -31,3 +31,3 @@ "main": "lib/index.js", | ||
"@pnpm/read-package-json": "6.0.7", | ||
"@pnpm/read-project-manifest": "3.0.8", | ||
"@pnpm/read-project-manifest": "3.0.9", | ||
"@pnpm/types": "8.5.0", | ||
@@ -40,9 +40,9 @@ "@zkochan/cmd-shim": "^5.3.0", | ||
"p-settle": "^4.1.1", | ||
"ramda": "^0.28.0", | ||
"ramda": "npm:@pnpm/ramda@0.28.1", | ||
"symlink-dir": "^5.0.1" | ||
}, | ||
"devDependencies": { | ||
"@pnpm/link-bins": "7.2.3", | ||
"@pnpm/link-bins": "7.2.4", | ||
"@pnpm/logger": "^4.0.0", | ||
"@pnpm/test-fixtures": "0.0.16", | ||
"@pnpm/test-fixtures": "0.0.17", | ||
"@types/is-windows": "^1.0.0", | ||
@@ -49,0 +49,0 @@ "@types/node": "^14.18.22", |
Sorry, the diff of this file is not supported yet
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
19719
+ Added@pnpm/ramda@0.28.1(transitive)
+ Added@pnpm/read-project-manifest@3.0.9(transitive)
+ Added@pnpm/write-project-manifest@3.0.7(transitive)
- Removed@pnpm/read-project-manifest@3.0.8(transitive)
- Removed@pnpm/write-project-manifest@3.0.6(transitive)
- Removedramda@0.28.0(transitive)
Updatedramda@npm:@pnpm/ramda@0.28.1