@pnpm/link-bins
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -22,3 +22,5 @@ "use strict"; | ||
const getPkgDirs_1 = require("./getPkgDirs"); | ||
const POWER_SHELL_IS_SUPPORTED = isWindows(); | ||
const IS_WINDOWS = isWindows(); | ||
const EXECUTABLE_SHEBANG_SUPPORTED = !IS_WINDOWS; | ||
const POWER_SHELL_IS_SUPPORTED = IS_WINDOWS; | ||
exports.default = (modules, binPath, opts) => __awaiter(this, void 0, void 0, function* () { | ||
@@ -80,2 +82,5 @@ const pkgDirs = yield getPkgDirs_1.default(modules, opts.warn); | ||
const externalBinPath = path.join(binPath, cmd.name); | ||
if (EXECUTABLE_SHEBANG_SUPPORTED) { | ||
yield fs.chmod(cmd.path, 0o755); | ||
} | ||
const nodePath = yield getBinNodePaths(cmd.path); | ||
@@ -82,0 +87,0 @@ return cmdShim(cmd.path, externalBinPath, { |
{ | ||
"name": "@pnpm/link-bins", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Link bins to node_modules/.bin", | ||
@@ -16,3 +16,3 @@ "main": "lib/index.js", | ||
"tsc": "rimraf lib && tsc", | ||
"test": "npm run lint && preview && ts-node test --type-check && mos t", | ||
"test": "npm run lint && preview && ncp test/fixtures test/fixtures_for_testing && ts-node test --type-check && rimraf test/fixtures_for_testing && mos t", | ||
"md": "mos", | ||
@@ -54,3 +54,3 @@ "prepublishOnly": "npm run tsc", | ||
"@types/path-exists": "^3.0.0", | ||
"@types/sinon": "^5.0.1", | ||
"@types/sinon": "^7.0.0", | ||
"@types/tape": "^4.2.31", | ||
@@ -60,3 +60,4 @@ "@types/tempy": "^0.2.0", | ||
"mos-plugin-readme": "^1.0.4", | ||
"package-preview": "^1.0.1", | ||
"ncp": "^2.0.0", | ||
"package-preview": "^2.0.0", | ||
"path-exists": "^3.0.0", | ||
@@ -63,0 +64,0 @@ "rimraf": "^2.6.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
16371
176
16