I do this too. One thing I see a lot of package.json files doing unnecessarily is putting the full path of binaries in the script, ie:
”test”: “./node_modules/mocha/bin/mocha test”
But npm actually puts binaries in the PATH for you when you use npm run, so you can just use:
”test”: “mocha test”
even if they’re not installed globally.