$ npm install @pnpm/link-bins
Link bins to node_modules/.bin
pnpm add @pnpm/link-bins
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})
© 2010 - cnpmjs.org x YWFE | Home | YWFE