Skip to content

Commit

Permalink
cleanup chicken and egg problem with lint before build
Browse files Browse the repository at this point in the history
now it goes like this when you `npm publish`: `npm build > npm lint > npm test > npm publish`
  • Loading branch information
theinterned committed Oct 27, 2023
1 parent a1cd9da commit 760062e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 760062e

Please sign in to comment.