add prepublish script

This commit is contained in:
Florent Fayolle 2021-04-18 17:41:15 +02:00
parent 4c2c0b7220
commit ac12992c60

View File

@ -6,7 +6,9 @@
"types": "build/index.d.ts",
"scripts": {
"test": "env TS_NODE_PROJECT='./tests/tsconfig.json' mocha --require ts-node/register ./tests/**/*-spec.ts",
"build": "tsc -p ./src"
"build": "tsc -p ./src",
"lint": "eslint 'tests/**/*.ts' 'src/**/*.ts'",
"prepublish": "npm run-script build && npm run-script lint && npm test"
},
"repository": {
"type": "git",