I know I can do:
npm config set init.author.email me@mycompany.com
npm config set init.license UNLICENSED
To set the defaults used to create a new package.json
with npm init
. But how can I set the default value for the test command
? I've tried
npm config set init.scripts.test "mocha"
But it doesn't work. The npm docs don't seem to help.
Is there a list of all the init defaults?