Add `prepublishOnly` script running test and build before publish

This commit is contained in:
jos 2019-09-01 17:39:40 +02:00
parent 2d129f2df5
commit 862c3f6822
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@
"minify": "gulp minify",
"start": "gulp watch",
"test": "mocha test --require @babel/register",
"lint": "standard --env=mocha"
"lint": "standard --env=mocha",
"prepublishOnly": "npm test && npm run build"
},
"dependencies": {
"ajv": "6.10.2",