Repository navigation
Commit 42e5b16
authored
chore: provision node and bun via nix instead of pnpm (#1271)
* chore: provision node and bun via nix instead of pnpm
`package.json` declared `engines.runtime` for node and bun with
`onFail: download`, so pnpm fetched and managed those runtimes itself. That
made every environment depend on a pnpm-managed download at runtime instead of
the pinned Nix toolchain.
Drop `engines.runtime` and provide both runtimes explicitly:
- dev shell: add `nodejs_24` (bun was already present).
- test job: install `nodejs_24` for Vitest (dropping the unused bun).
- pkg-pr-new: add `nodejs_24` and `bun` for the tsdown / ensure-native-binary
prepack scripts that previously relied on the managed runtimes.
- perf jobs: add `nodejs_24` alongside the existing bun.
- release: add `bun`; node still comes from `setup-node`, which is kept for the
npm registry auth and provenance setup.
Verified locally with a clean pnpm state: `pnpm install --frozen-lockfile` no
longer manages runtimes and Vitest runs on the PATH node.
* chore: drop managed runtimes from the pnpm lockfile
The lockfile recorded the `engines.runtime` node/bun entries as `runtime:`
dependencies. With `engines.runtime` removed, regenerate the lockfile so
`pnpm install --frozen-lockfile` stays in sync and no longer resolves the
pnpm-managed runtimes.
* chore: use the default pnpm and nodejs nixpkgs attributes
Pin to the unversioned `pnpm` and `nodejs` attributes rather than `pnpm_11` /
`nodejs_24`. `pnpm` currently resolves to 11.1.1 (same as the explicit alias,
matching the lockfile) and `nodejs` tracks the active LTS, so the dev shell and
CI follow the maintained defaults without hard-coding a major.1 parent d6d34c4 commit 42e5b16
5 files changed
Lines changed: 12 additions & 233 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
150 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 21 | | |
36 | 22 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments