Consider using "bin" property of package.json to reference CLI app
niksy opened this issue · comments
Ivan Nikolić commented
Using bin
property of package.json you can easily reference CLI app and make it available to npm scripts.
Instead of this:
{
"build-phpjs": "node node_modules/phpjs/bin/phpjs.js --action buildnpm --name nl2br"
}
It can be used like this:
{
"build-phpjs": "phpjs.js --action buildnpm --name nl2br"
}
Is this something you would consider using?
Kevin van Zonneveld commented
I think that makes sense yes!