Skip to content

Commit 446da80

Browse files
fix: postinstall should not contain dev env setup (#17)
`postinstall` runs after the user installs the package causing issues since `simple-git-hooks` is not installed: ![CleanShot 2025-06-27 at 16 32 50](https://github.com/user-attachments/assets/f75526fb-8535-4095-97f0-8441653e7fb0) You already have `prepare` which runs when you run `pnpm install` inside the repo that accomplishes what you want: ![CleanShot 2025-06-27 at 16 35 31](https://github.com/user-attachments/assets/937a0e06-e2fa-4a76-b9f9-b28b7b4ae3aa)
1 parent 8e30078 commit 446da80

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"lint": "biome lint",
3535
"lint:fix": "biome lint --fix",
3636
"prepare": "npm run build && simple-git-hooks",
37-
"postinstall": "simple-git-hooks",
3837
"test": "dotenv -e .env -e .env.local -- vitest --reporter=./src/reporter.ts",
3938
"test:ci": "dotenv -e .env -e .env.local -- vitest run --coverage --reporter=./src/reporter.ts --reporter=junit --outputFile=tests.junit.xml"
4039
},

0 commit comments

Comments
 (0)