i know can do:
npm config set init.author.email me@mycompany.com npm config set init.license unlicensed
to set defaults used create new package.json
npm init
. how can set default value test command
? i've tried
npm config set init.scripts.test "mocha"
but doesn't work. npm docs don't seem help.
is there list of init defaults?
there list of config defaults npm config list -l
.
as can see there isn't init.scripts. there way it. if first npm install mocha
, npm init
package.json like:
{ "name": "asd", "version": "1.0.0", "description": "", "main": "index.js", "dependencies": {}, "devdependencies": { "mocha": "^2.4.5" }, "scripts": { "test": "mocha" }, "author": "", "license": "unlicensed" }
Comments
Post a Comment