Commit ea8942e
authored
chore: switch package manager from bun to pnpm (#967)
## Summary
First step of the Bun → Node.js migration. Switches the project's
package manager from bun to pnpm while keeping bun as the TS runner and
test runner for now (incremental migration).
### Changes
- Set `packageManager` to `pnpm@10.11.0`
- Move `patchedDependencies` into `pnpm` config section (pnpm nests it
under `"pnpm": {}`)
- Add `onlyBuiltDependencies: ["esbuild"]` for pnpm's build script
approval
- Add `@sentry/core` and `@clack/prompts` as explicit `devDependencies`
— these were phantom deps hoisted by bun's flat `node_modules` but
imported directly by source code
- Generate `pnpm-lock.yaml`
### Test results
All 6968 unit tests pass under `bun test` with pnpm's `node_modules`.
One pre-existing test fragility (`sdk.run throws when auth is required
but missing` in `test/lib/index.test.ts`) surfaces under pnpm's strict
hoisting — the mock fetch returns empty 200s which prevents the expected
auth error. This is unrelated to this change and will be addressed
separately.
### Notes
- `bun.lock` is intentionally kept for now — will be removed in a
cleanup PR after the full migration
- All three patches (`@stricli/core`, `@sentry/core`,
`@sentry/node-core`) apply successfully under pnpm
- Scripts still use `bun run` / `bun test` internally — migrating those
to `tsx` / `vitest` is a separate step1 parent 419373c commit ea8942e
9 files changed
Lines changed: 4054 additions & 48 deletions
File tree
- .github/workflows
- test
- e2e
- lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
129 | 132 | | |
130 | | - | |
| 133 | + | |
131 | 134 | | |
132 | | - | |
| 135 | + | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| |||
175 | 178 | | |
176 | 179 | | |
177 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
178 | 184 | | |
179 | 185 | | |
180 | 186 | | |
181 | 187 | | |
182 | | - | |
| 188 | + | |
183 | 189 | | |
184 | | - | |
| 190 | + | |
185 | 191 | | |
186 | 192 | | |
187 | 193 | | |
| |||
201 | 207 | | |
202 | 208 | | |
203 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
204 | 213 | | |
205 | 214 | | |
206 | 215 | | |
207 | 216 | | |
208 | | - | |
| 217 | + | |
209 | 218 | | |
210 | | - | |
| 219 | + | |
211 | 220 | | |
212 | 221 | | |
213 | 222 | | |
| |||
233 | 242 | | |
234 | 243 | | |
235 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
236 | 248 | | |
237 | 249 | | |
238 | 250 | | |
239 | 251 | | |
240 | | - | |
| 252 | + | |
241 | 253 | | |
242 | 254 | | |
243 | 255 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
| 256 | + | |
255 | 257 | | |
256 | 258 | | |
257 | 259 | | |
| |||
628 | 630 | | |
629 | 631 | | |
630 | 632 | | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
631 | 636 | | |
632 | 637 | | |
633 | 638 | | |
634 | 639 | | |
635 | | - | |
| 640 | + | |
636 | 641 | | |
637 | | - | |
| 642 | + | |
638 | 643 | | |
639 | 644 | | |
640 | 645 | | |
| |||
664 | 669 | | |
665 | 670 | | |
666 | 671 | | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
667 | 675 | | |
668 | 676 | | |
669 | 677 | | |
670 | 678 | | |
671 | 679 | | |
672 | 680 | | |
673 | 681 | | |
674 | | - | |
| 682 | + | |
675 | 683 | | |
676 | | - | |
| 684 | + | |
677 | 685 | | |
678 | 686 | | |
679 | 687 | | |
| |||
705 | 713 | | |
706 | 714 | | |
707 | 715 | | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
708 | 719 | | |
709 | 720 | | |
710 | 721 | | |
| |||
714 | 725 | | |
715 | 726 | | |
716 | 727 | | |
717 | | - | |
| 728 | + | |
718 | 729 | | |
719 | | - | |
| 730 | + | |
720 | 731 | | |
721 | 732 | | |
722 | 733 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
48 | | - | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | | - | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | | - | |
| 48 | + | |
46 | 49 | | |
47 | | - | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
0 commit comments