Skip to content

Conversation

christian-kreuzberger-dtx
Copy link
Collaborator

@christian-kreuzberger-dtx christian-kreuzberger-dtx commented Aug 13, 2025

Adding husky via Copilot

Fixes #88

Copy link

github-actions bot commented Aug 13, 2025

📦 Package.json Changes Detected

This PR modifies package.json. Please review the following changes carefully, and tick the following checklist boxes:

Checklist for Reviewers

  • Verify that new and/or updated dependencies are necessary and from trusted sources
  • Review any script changes for (security) implications
  • Verify whether a new version should be released after merging the PR

Package.json Diff

diff --git a/package.json b/package.json
index a08fcdb..e7f71af 100644
--- a/package.json
+++ b/package.json
@@ -35,7 +35,7 @@
   },
   "scripts": {
     "build": "tsc --build",
-    "prepare": "npm run build",
+    "prepare": "husky",
     "watch": "tsc --watch",
     "test": "jest",
     "test:unit": "jest --selectProjects unit",
@@ -59,6 +59,7 @@
   "devDependencies": {
     "@types/jest": "^30.0.0",
     "@types/node": "^22",
+    "husky": "^9.1.7",
     "jest": "^30.0.0",
     "prettier": "^3.6.2",
     "ts-jest": "^29.4.0",

This comment was automatically generated by the PR Package.json Comment workflow.

Copy link
Collaborator

@MrManny MrManny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never tried update-index before, but it sounds plausible. Let's give it a go! :)

@christian-kreuzberger-dtx
Copy link
Collaborator Author

Never tried update-index before, but it sounds plausible. Let's give it a go! :)

I took it from the husky docs: https://typicode.github.io/husky/get-started.html#scripting

@christian-kreuzberger-dtx christian-kreuzberger-dtx merged commit 65a4c4c into main Aug 13, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Husky Pre-Commit hooks
2 participants