Skip to content

Commit c163423

Browse files
wan9chiclaude
andcommitted
chore: remove root prepare script (husky) to fix git-dep extraction
pnpm's git-dep flow: when prepare succeeds, pnpm runs `pnpm pack` on the subpath; when prepare is absent (or fails), pnpm falls back to direct subpath extraction. The pack path produces a lockfile `resolution` entry without the `path:` field, which causes the consumer's outer pnpm to extract the *whole* monorepo (rooted at `vite-task-monorepo`) into `node_modules/@voidzero-dev/vite-task-client/` — TypeScript then can't find the actual subpackage and fails with TS2307. Dropping the prepare script restores the direct-extraction codepath (lockfile entry now includes `path: /packages/vite-task-client`). Local contributors who want the husky hooks set up can run `pnpm exec husky` manually once after cloning. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent eae0058 commit c163423

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
@@ -4,7 +4,6 @@
44
"license": "MIT",
55
"type": "module",
66
"scripts": {
7-
"prepare": "husky || true",
87
"build-vite-task-client-types": "tsc -p packages/vite-task-client/tsconfig.json"
98
},
109
"devDependencies": {

0 commit comments

Comments
 (0)