@pnpm/link-bins
Advanced tools
Comparing version 6.2.7 to 6.2.8
@@ -160,11 +160,11 @@ "use strict"; | ||
const externalBinPath = path_1.default.join(binsDir, cmd.name); | ||
let nodePath; | ||
if ((opts === null || opts === void 0 ? void 0 : opts.extendNodePath) !== false) { | ||
nodePath = await getBinNodePaths(cmd.path); | ||
const binsParentDir = path_1.default.dirname(binsDir); | ||
if (path_1.default.relative(cmd.path, binsParentDir) !== '') { | ||
nodePath = (0, union_1.default)(nodePath, await getBinNodePaths(binsParentDir)); | ||
try { | ||
let nodePath; | ||
if ((opts === null || opts === void 0 ? void 0 : opts.extendNodePath) !== false) { | ||
nodePath = await getBinNodePaths(cmd.path); | ||
const binsParentDir = path_1.default.dirname(binsDir); | ||
if (path_1.default.relative(cmd.path, binsParentDir) !== '') { | ||
nodePath = (0, union_1.default)(nodePath, await getBinNodePaths(binsParentDir)); | ||
} | ||
} | ||
} | ||
try { | ||
await (0, cmd_shim_1.default)(cmd.path, externalBinPath, { | ||
@@ -171,0 +171,0 @@ createPwshFile: cmd.makePowerShellShim, |
{ | ||
"name": "@pnpm/link-bins", | ||
"version": "6.2.7", | ||
"version": "6.2.8", | ||
"description": "Link bins to node_modules/.bin", | ||
@@ -27,8 +27,8 @@ "main": "lib/index.js", | ||
"@pnpm/error": "2.0.0", | ||
"@pnpm/manifest-utils": "2.1.4", | ||
"@pnpm/package-bins": "5.0.9", | ||
"@pnpm/manifest-utils": "2.1.5", | ||
"@pnpm/package-bins": "5.0.10", | ||
"@pnpm/read-modules-dir": "3.0.1", | ||
"@pnpm/read-package-json": "5.0.8", | ||
"@pnpm/read-project-manifest": "2.0.9", | ||
"@pnpm/types": "7.7.1", | ||
"@pnpm/read-package-json": "5.0.9", | ||
"@pnpm/read-project-manifest": "2.0.10", | ||
"@pnpm/types": "7.8.0", | ||
"@zkochan/cmd-shim": "^5.2.1", | ||
@@ -66,3 +66,4 @@ "bin-links": "^2.3.0", | ||
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix" | ||
} | ||
}, | ||
"readme": "# @pnpm/link-bins\n\n> Link bins to node_modules/.bin\n\n<!--@shields('npm', 'travis')-->\n[![npm version](https://img.shields.io/npm/v/@pnpm/link-bins.svg)](https://www.npmjs.com/package/@pnpm/link-bins) [![Build Status](https://img.shields.io/travis/pnpm/link-bins/master.svg)](https://travis-ci.org/pnpm/link-bins)\n<!--/@-->\n\n## Installation\n\n```sh\n<pnpm|yarn|npm> add @pnpm/link-bins\n```\n\n## Usage\n\n```ts\nimport linkBins, {linkBinsOfPackages} from '@pnpm/link-bins'\n\nfunction warn (msg) { console.warn(msg) }\n\nawait linkBins('node_modules', 'node_modules/.bin', {warn})\n\nconst packages = [{manifest: packageJson, location: pathToPackage}]\nawait linkBinsOfPackages(packages, 'node_modules/.bin', {warn})\n```\n\n## License\n\n[MIT](./LICENSE)\n" | ||
} |
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
21631
+ Added@pnpm/core-loggers@6.1.2(transitive)
+ Added@pnpm/manifest-utils@2.1.5(transitive)
+ Added@pnpm/package-bins@5.0.10(transitive)
+ Added@pnpm/read-package-json@5.0.9(transitive)
+ Added@pnpm/read-project-manifest@2.0.10(transitive)
+ Added@pnpm/types@7.8.0(transitive)
+ Added@pnpm/write-project-manifest@2.0.9(transitive)
- Removed@pnpm/core-loggers@6.1.1(transitive)
- Removed@pnpm/manifest-utils@2.1.4(transitive)
- Removed@pnpm/package-bins@5.0.9(transitive)
- Removed@pnpm/read-package-json@5.0.8(transitive)
- Removed@pnpm/read-project-manifest@2.0.9(transitive)
- Removed@pnpm/types@7.7.1(transitive)
- Removed@pnpm/write-project-manifest@2.0.8(transitive)
Updated@pnpm/manifest-utils@2.1.5
Updated@pnpm/package-bins@5.0.10
Updated@pnpm/types@7.8.0