@pnpm/link-bins
Advanced tools
Comparing version 7.1.7 to 7.2.0
import { DependencyManifest, ProjectManifest } from '@pnpm/types'; | ||
export declare type WarningCode = 'BINARIES_CONFLICT' | 'EMPTY_BIN'; | ||
export declare type WarnFunction = (msg: string, code: WarningCode) => void; | ||
declare const _default: (modulesDir: string, binsDir: string, opts: { | ||
declare const _default: (modulesDir: string, binsDir: string, opts: LinkBinOptions & { | ||
allowExoticManifests?: boolean; | ||
extraNodePaths?: string[]; | ||
nodeExecPathByAlias?: Record<string, string>; | ||
@@ -16,4 +15,6 @@ projectManifest?: ProjectManifest; | ||
location: string; | ||
}>, binsTarget: string, opts?: { | ||
}>, binsTarget: string, opts?: LinkBinOptions): Promise<string[]>; | ||
export interface LinkBinOptions { | ||
extraNodePaths?: string[]; | ||
}): Promise<string[]>; | ||
preferSymlinkedExecutables?: boolean; | ||
} |
@@ -48,2 +48,3 @@ "use strict"; | ||
const partition_js_1 = __importDefault(require("ramda/src/partition.js")); | ||
const symlink_dir_1 = __importDefault(require("symlink-dir")); | ||
const fix_bin_1 = __importDefault(require("bin-links/lib/fix-bin")); | ||
@@ -160,2 +161,6 @@ const binsConflictLogger = (0, logger_1.default)('bins-conflict'); | ||
const externalBinPath = path_1.default.join(binsDir, cmd.name); | ||
if (opts?.preferSymlinkedExecutables && !IS_WINDOWS && cmd.nodeExecPath == null) { | ||
await (0, symlink_dir_1.default)(cmd.path, externalBinPath); | ||
return; | ||
} | ||
try { | ||
@@ -162,0 +167,0 @@ await (0, cmd_shim_1.default)(cmd.path, externalBinPath, { |
{ | ||
"name": "@pnpm/link-bins", | ||
"version": "7.1.7", | ||
"version": "7.2.0", | ||
"description": "Link bins to node_modules/.bin", | ||
@@ -35,14 +35,15 @@ "main": "lib/index.js", | ||
"bin-links": "^2.3.0", | ||
"is-subdir": "^1.1.1", | ||
"is-subdir": "^1.2.0", | ||
"is-windows": "^1.0.2", | ||
"normalize-path": "^3.0.0", | ||
"p-settle": "^4.1.1", | ||
"ramda": "^0.28.0" | ||
"ramda": "^0.28.0", | ||
"symlink-dir": "^5.0.1" | ||
}, | ||
"devDependencies": { | ||
"@pnpm/link-bins": "7.1.7", | ||
"@pnpm/link-bins": "7.2.0", | ||
"@pnpm/logger": "^4.0.0", | ||
"@pnpm/test-fixtures": "0.0.14", | ||
"@types/is-windows": "^1.0.0", | ||
"@types/node": "^14.17.32", | ||
"@types/node": "^14.18.22", | ||
"@types/normalize-path": "^3.0.0", | ||
@@ -52,3 +53,3 @@ "@types/ramda": "0.28.14", | ||
"path-exists": "^4.0.0", | ||
"tempy": "^1.0.0" | ||
"tempy": "^1.0.1" | ||
}, | ||
@@ -55,0 +56,0 @@ "funding": "https://opencollective.com/pnpm", |
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
19746
213
16
+ Addedsymlink-dir@^5.0.1
+ Added@zkochan/rimraf@2.1.3(transitive)
+ Addedfs-extra@10.1.0(transitive)
+ Addedjsonfile@6.1.0(transitive)
+ Addedrename-overwrite@5.0.4(transitive)
+ Addedsymlink-dir@5.2.1(transitive)
+ Addeduniversalify@2.0.1(transitive)
Updatedis-subdir@^1.2.0