Commit 10c006c
chore: add msw init to prepare script
pnpm hardlinks msw from its global store after the first build, so
msw's postinstall doesn't re-run on subsequent installs — new clones
hitting a warm store would not get public/mockServiceWorker.js.
Run `msw init public --save` in the prepare script so every
`pnpm install` regenerates the worker deterministically.
Normalize workerDirectory to "public" to keep `--save` idempotent
(passing "./public" triggers msw to append both forms).
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent b4bd31d commit 10c006c
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | | - | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
0 commit comments