Package Exports
- @pnpm/link-bins
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@pnpm/link-bins) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@pnpm/link-bins
Link bins to node_modules/.bin
Installation
<pnpm|yarn|npm> add @pnpm/link-binsUsage
import linkBins, {linkBinsOfPackages} from '@pnpm/link-bins'
function warn (msg) { console.warn(msg) }
await linkBins('node_modules', 'node_modules/.bin', {warn})
const packages = [{manifest: packageJson, location: pathToPackage}]
await linkBinsOfPackages(packages, 'node_modules/.bin', {warn})