@pnpm/link-bins
Advanced tools
Comparing version 5.1.0 to 5.1.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const error_1 = require("@pnpm/error"); | ||
const package_bins_1 = require("@pnpm/package-bins"); | ||
@@ -75,2 +76,8 @@ const read_modules_dir_1 = require("@pnpm/read-modules-dir"); | ||
} | ||
if (R.isEmpty(pkg.bin)) { | ||
throw new error_1.default('INVALID_PACKAGE_BIN', `Package in ${target} must have a non-empty bin field to get bin linked.`); | ||
} | ||
if (typeof pkg.bin === 'string' && !pkg.name) { | ||
throw new error_1.default('INVALID_PACKAGE_NAME', `Package in ${target} must have a name to get bin linked.`); | ||
} | ||
return getPackageBinsFromPackageJson(pkg, target); | ||
@@ -77,0 +84,0 @@ } |
{ | ||
"name": "@pnpm/link-bins", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Link bins to node_modules/.bin", | ||
@@ -32,2 +32,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@pnpm/error": "1.0.0", | ||
"@pnpm/package-bins": "4.0.2", | ||
@@ -54,3 +55,3 @@ "@pnpm/read-modules-dir": "2.0.1", | ||
"@types/normalize-path": "^3.0.0", | ||
"@types/ramda": "^0.26.39", | ||
"@types/ramda": "^0.26.40", | ||
"@types/sinon": "^7.5.1", | ||
@@ -61,5 +62,5 @@ "@types/tape": "^4.2.33", | ||
"rimraf": "^3.0.0", | ||
"sinon": "8.1.0", | ||
"sinon": "8.1.1", | ||
"tempy": "^0.3.0" | ||
} | ||
} |
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
9111
140
14
+ Added@pnpm/error@1.0.0