Socket
Socket
Sign inDemoInstall

@pnpm/link-bins

Package Overview
Dependencies
Maintainers
2
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/link-bins - npm Package Compare versions

Comparing version 6.2.7 to 6.2.8

16

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc