switch from prepublish to prepare in package.json, also ignore npm 5 lock file

This commit is contained in:
David Frank 2017-06-03 17:59:26 +08:00
parent 0674a0b544
commit a2b032c0df
2 changed files with 5 additions and 1 deletions

4
.gitignore vendored
View File

@ -33,3 +33,7 @@ node_modules
# Babel-compiled files
lib
# Ignore package manager lock files
package-lock.json
yarn.lock

View File

@ -14,7 +14,7 @@
},
"scripts": {
"build": "cross-env BABEL_ENV=rollup rollup -c",
"prepublish": "npm run build",
"prepare": "npm run build",
"test": "cross-env BABEL_ENV=test mocha --compilers js:babel-register test/test.js",
"report": "cross-env BABEL_ENV=coverage nyc --reporter lcov --reporter text mocha -R spec test/test.js",
"coverage": "cross-env BABEL_ENV=coverage nyc --reporter json --reporter text mocha -R spec test/test.js && codecov -f coverage/coverage-final.json"