add prepublish script
This commit is contained in:
parent
4c2c0b7220
commit
ac12992c60
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user