From ac12992c600ac33844081a906c4ea262b470ac03 Mon Sep 17 00:00:00 2001 From: Florent Fayolle Date: Sun, 18 Apr 2021 17:41:15 +0200 Subject: [PATCH] add prepublish script --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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",