@pnpm/link-bins
Advanced tools
Comparing version 6.2.4 to 6.2.5
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -11,3 +30,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
const error_1 = __importDefault(require("@pnpm/error")); | ||
const logger_1 = __importDefault(require("@pnpm/logger")); | ||
const logger_1 = __importStar(require("@pnpm/logger")); | ||
const manifest_utils_1 = require("@pnpm/manifest-utils"); | ||
@@ -150,7 +169,16 @@ const package_bins_1 = __importDefault(require("@pnpm/package-bins")); | ||
} | ||
await (0, cmd_shim_1.default)(cmd.path, externalBinPath, { | ||
createPwshFile: cmd.makePowerShellShim, | ||
nodePath, | ||
nodeExecPath: cmd.nodeExecPath, | ||
}); | ||
try { | ||
await (0, cmd_shim_1.default)(cmd.path, externalBinPath, { | ||
createPwshFile: cmd.makePowerShellShim, | ||
nodePath, | ||
nodeExecPath: cmd.nodeExecPath, | ||
}); | ||
} | ||
catch (err) { // eslint-disable-line | ||
if (err.code !== 'ENOENT') { | ||
throw err; | ||
} | ||
(0, logger_1.globalWarn)(`Failed to create bin at ${externalBinPath}. The source file at ${cmd.path} does not exist.`); | ||
return; | ||
} | ||
// ensure that bin are executable and not containing | ||
@@ -157,0 +185,0 @@ // windows line-endings(CRLF) on the hashbang line |
{ | ||
"name": "@pnpm/link-bins", | ||
"version": "6.2.4", | ||
"version": "6.2.5", | ||
"description": "Link bins to node_modules/.bin", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
20814
222