@pnpm/package-bins
Advanced tools
Comparing version 8.0.3 to 8.0.4
@@ -44,3 +44,3 @@ "use strict"; | ||
{ | ||
name: pkgName[0] === '@' ? pkgName.slice(pkgName.indexOf('/') + 1) : pkgName, | ||
name: normalizeBinName(pkgName), | ||
path: path_1.default.join(pkgPath, bin), | ||
@@ -51,5 +51,5 @@ }, | ||
return Object.keys(bin) | ||
.filter((commandName) => encodeURIComponent(commandName) === commandName || commandName === '$') | ||
.filter((commandName) => encodeURIComponent(commandName) === commandName || commandName === '$' || commandName[0] === '@') | ||
.map((commandName) => ({ | ||
name: commandName, | ||
name: normalizeBinName(commandName), | ||
path: path_1.default.join(pkgPath, bin[commandName]), | ||
@@ -59,2 +59,5 @@ })) | ||
} | ||
function normalizeBinName(name) { | ||
return name[0] === '@' ? name.slice(name.indexOf('/') + 1) : name; | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@pnpm/package-bins", | ||
"version": "8.0.3", | ||
"version": "8.0.4", | ||
"description": "Returns bins of a package", | ||
@@ -28,7 +28,7 @@ "main": "lib/index.js", | ||
"is-subdir": "^1.2.0", | ||
"@pnpm/types": "9.3.0" | ||
"@pnpm/types": "9.4.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^16.18.52", | ||
"@pnpm/package-bins": "8.0.3" | ||
"@types/node": "^16.18.58", | ||
"@pnpm/package-bins": "8.0.4" | ||
}, | ||
@@ -35,0 +35,0 @@ "funding": "https://opencollective.com/pnpm", |
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
7181
65
+ Added@pnpm/types@9.4.0(transitive)
- Removed@pnpm/types@9.3.0(transitive)
Updated@pnpm/types@9.4.0