Skip to content

Commit

Permalink
feat(package.json): add prepublishOnly script
Browse files Browse the repository at this point in the history
Added a new "prepublishOnly" script to run tests and type checks before
publishing the package. This ensures code quality and prevents issues
from being published.
  • Loading branch information
ryoppippi committed Jan 27, 2025
1 parent c1f7505 commit e083aec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"typecheck": "tsc --noEmit",
"test": "bun test",
"release": "nr test && nr typecheck && nlx bumpp",
"prepublishOnly": "nr test && nr typecheck",
"lint": "eslint --cache .",
"format": "nr lint --fix"
},
Expand Down

0 comments on commit e083aec

Please sign in to comment.