Commit c163423
chore: remove root prepare script (
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>husky) to fix git-dep extraction1 parent eae0058 commit c163423
1 file changed
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
0 commit comments