diff --git a/package.json b/package.json index 06397cf..234b69d 100644 --- a/package.json +++ b/package.json @@ -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",