From 760062e2958cd782c3d223783c6abc064e490cda Mon Sep 17 00:00:00 2001 From: Ned Schwartz Date: Fri, 27 Oct 2023 17:21:07 -0400 Subject: [PATCH] cleanup chicken and egg problem with lint before build now it goes like this when you `npm publish`: `npm build > npm lint > npm test > npm publish` --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9c6b257..9593d6d 100644 --- a/package.json +++ b/package.json @@ -12,9 +12,9 @@ "lint": "eslint . --ext .js,.ts && tsc --noEmit", "test": "karma start karma.config.cjs", "clean": "rm -rf dist", - "prebuild": "npm run clean && npm run lint && mkdir dist", - "pretest": "npm run build", - "prepublishOnly": "npm run build", + "prebuild": "npm run clean && mkdir dist", + "pretest": "npm run build && npm run lint", + "prepublishOnly": "npm run test", "buildSite": "npm run build && mkdir -p pages/hotkey && cp -r dist/* pages/hotkey" }, "files": [