Skip to content

Commit

Permalink
build: lint compiled code before releasing to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
wagerfield committed Aug 9, 2023
1 parent 5cdb05b commit 37da38a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
"commitMessage": "chore: release v${version}"
},
"hooks": {
"before:init": ["git pull", "pnpm lint", "pnpm test"],
"before:release": ["pnpm clean", "pnpm build"],
"before:init": [
"git pull",
"pnpm clean",
"pnpm build",
"pnpm lint",
"pnpm test"
],
"after:bump": "pnpm changelog"
},
"github": {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
],
"scripts": {
"build": "pkgroll",
"lint": "prettier --write .",
"test": "vitest run --coverage",
"clean": "rm -rf coverage dist",
"lint": "prettier --write --ignore-path .prettierignore .",
"test": "vitest run --coverage",
"changelog": "pnpm auto-changelog",
"prepare": "husky install",
"release": "release-it"
Expand Down

0 comments on commit 37da38a

Please sign in to comment.