Skip to content

Commit

Permalink
use Tact approach for husky
Browse files Browse the repository at this point in the history
  • Loading branch information
i582 committed Feb 20, 2025
1 parent ebc0724 commit 6a219d9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .husky/install.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Makes all husky runs silent when it shouldn't have run
// And non-silent otherwise (direct installation of dependencies inside Tact repo)
//
// Taken from:
// https://typicode.github.io/husky/how-to.html#ci-server-and-docker

const husky = (await import("husky")).default
console.log(husky())
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default tseslint.config(
"**/*.spec.ts",
"eslint.config.mjs",
"vitest.config.ts",
".husky/install.mjs",
".github/*",
".yarn/*",
".testing/*",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"gen-spec": "ts-node scripts/gen-codepage.ts",
"test": "vitest",
"coverage": "c8 vitest",
"postinstall": "husky || true"
"postinstall": "node .husky/install.mjs || true"
},
"devDependencies": {
"@scaleton/func-debug-symbols": "0.1.5",
Expand Down

0 comments on commit 6a219d9

Please sign in to comment.