From bb6cd30ff20d1f09ae333b1a72582ccf1817d000 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 24 Jun 2019 18:10:10 -0400 Subject: [PATCH] only lint when publishing. too slow to run on every test --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c2dd066def..13f53c76e5 100644 --- a/package.json +++ b/package.json @@ -30,12 +30,12 @@ "coverage": "c8 report --reporter=text-lcov > coverage.lcov && c8 report --reporter=html", "codecov": "codecov", "precodecov": "npm run coverage", - "build": "rollup -c && npm run lint && npm run tsd", + "build": "rollup -c && npm run tsd", "prepare": "npm run build", "dev": "rollup -cw", "pretest": "npm run build", "posttest": "agadoo internal/index.mjs", - "prepublishOnly": "PUBLISH=true npm test", + "prepublishOnly": "npm run lint && PUBLISH=true npm test", "tsd": "tsc -p src/compiler --emitDeclarationOnly && tsc -p src/runtime --emitDeclarationOnly", "lint": "eslint \"{src,test}/**/*.{ts,js}\"" },