Closed clayrisser closed 6 years ago
Is it not working for you (without full paths)? Shortcuts in npm scripts are available since a long time https://docs.npmjs.com/cli/run-script
or example, if there is a devDependency on tap in your package, you should write: "scripts": {"test": "tap test/*.js"} instead of "scripts": {"test": "node_modules/.bin/tap test/*.js"}
update: clarification
I knew that was the case with yarn, but didn't know it worked with npm.
Is it not working for you (without full paths)? Shortcuts in npm scripts are available since a long time https://docs.npmjs.com/cli/run-script
update: clarification