Closed wmertens closed 6 years ago
It would be nice to be able to get the path to a binfile of a package. getBin is not exported, but it also prepends node.
getBin
node
So I propose adding const runBin = (...args) => `node ${getBin(...args)}` internally and exporting getBin
const runBin = (...args) => `node ${getBin(...args)}`
My very specific use case would be to be able to run Jest under ndb like
ndb
const {getBin} = require('nps-utils') module.exports = { test: { inspect: `ndb ${getBin('jest')} --runInBand` } }
PRs welcome 👍
It would be nice to be able to get the path to a binfile of a package.
getBin
is not exported, but it also prependsnode
.So I propose adding
const runBin = (...args) => `node ${getBin(...args)}`
internally and exportinggetBin
My very specific use case would be to be able to run Jest under
ndb
like