Commit 9fe17f3
chore: migrate from npm to pnpm 11 (#16)
* chore: migrate from npm to pnpm 11
- package.json: scripts npm->pnpm, drop npm-style overrides,
add packageManager + devEngines.packageManager (pnpm@11.1.2)
and engines.node>=22 (pnpm 11 requires Node 22+)
- pnpm-workspace.yaml: pnpm 11 config home (.npmrc is now
auth/registry only). minimumReleaseAge: 2880 correctly encodes
the 48h supply-chain cooldown (old .npmrc min-release-age=2 was
malformed; pnpm 11 default is only 1440/24h). allowBuilds for
@swc/core + unrs-resolver set false (prebuilt platform bindings
used; strictDepBuilds is a pnpm 11 default). overrides migrated
here (pnpm does not read npm-style top-level overrides).
- delete .npmrc (held only the malformed general setting)
- ci.yml/release.yml: SHA-pinned pnpm/action-setup@v6.0.8,
cache: pnpm, pnpm install --frozen-lockfile / build / test.
release.yml keeps npm publish --provenance (OIDC trusted
publishing is an npm-registry feature)
- replace package-lock.json with pnpm-lock.yaml (v9.0)
Verified with pnpm 11.1.2 on Node 22: frozen-lockfile install,
build (cjs+esm), test (34 passed, 4 skipped), lint all exit 0.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* chore(CI): SHA-pin and bump checkout/setup-node to Node 24 majors
actions/checkout@v4 and actions/setup-node@v4 run on Node.js 20,
which GitHub forces to Node 24 by 2026-06-02 and removes by
2026-09-16. Bump to the latest majors (checkout v6.0.2,
setup-node v6.4.0) and SHA-pin them in ci.yml (was tag-pinned)
and release.yml (was pinned at v4.3.1/v4.4.0), consistent with
the third-party action pinning policy.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* chore: address review — drop engines.node, declare workspace root
- package.json: remove engines.node ">=22". The repo had no engines
field before this PR; constraining library consumers' Node runtime
is unrelated to the pnpm dev-tooling migration and would be a
breaking change. The pnpm/Node dev requirement is already covered
by devEngines + the pinned CI Node version.
- pnpm-workspace.yaml: add explicit `packages: ['.']` so the
single-package workspace is declared (schema-compliant, robust if
subdirs are added). Lockfile regenerated (gains importers: section);
resolution unchanged.
Re-verified with pnpm 11.1.2 / Node 22: frozen-lockfile install,
build, test, lint all exit 0.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent bbe6887 commit 9fe17f3
7 files changed
Lines changed: 3048 additions & 4758 deletions
File tree
- .github/workflows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
21 | 26 | | |
22 | 27 | | |
23 | | - | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
26 | | - | |
| 31 | + | |
27 | 32 | | |
28 | 33 | | |
29 | | - | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | | - | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
39 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
40 | 50 | | |
41 | 51 | | |
42 | | - | |
| 52 | + | |
43 | 53 | | |
44 | 54 | | |
45 | | - | |
| 55 | + | |
46 | 56 | | |
47 | 57 | | |
48 | | - | |
| 58 | + | |
49 | 59 | | |
50 | 60 | | |
51 | | - | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
37 | | - | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | | - | |
| 45 | + | |
41 | 46 | | |
| 47 | + | |
| 48 | + | |
42 | 49 | | |
43 | 50 | | |
44 | 51 | | |
45 | 52 | | |
46 | | - | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
76 | 83 | | |
77 | 84 | | |
78 | 85 | | |
79 | | - | |
| 86 | + | |
80 | 87 | | |
81 | 88 | | |
82 | | - | |
| 89 | + | |
83 | 90 | | |
84 | 91 | | |
85 | 92 | | |
| |||
This file was deleted.
0 commit comments