Skip to content

build: migrate from Bun to Node and pnpm - #45

Merged
shan8851 merged 1 commit into
mainfrom
chore/migrate-bun-to-node-pnpm
Oct 29, 2026
Merged

shan8851 merged 1 commit into
mainfrom
chore/migrate-bun-to-node-pnpm

Conversation

@shan8851

Copy link
Copy Markdown
Contributor

Bun was only used as the package manager and CI runner. The SDK already builds with tsup and tests with vitest on Node, so this swaps the toolchain to Node + pnpm, matching how the rest of our TypeScript repos are set up.

Changes

  • bun.lock → pnpm-lock.yaml, packageManager: pnpm@10.30.3, .nvmrc (24)
  • pnpm-workspace.yaml with pnpm supply-chain protections (blockExoticSubdeps, minimumReleaseAge, trustPolicy: no-downgrade). Two dev-only transitive packages published without provenance are excluded from the trust check: undici-types@6.21.0 (via @types/node) and chokidar@4.0.3 (via tsup).
  • CI (test.yml, release.yml): setup-bun → pnpm/action-setup + actions/setup-node (SHA-pinned), bun run → pnpm run. The npm OIDC publish steps in release.yml are unchanged.
  • prettier held at ~3.6.2, the version the Bun lockfile resolved; newer prettier reformats union types.
  • README / RELEASE.md commands updated.

Verification (Node 24)

  • typecheck, lint (0 errors), format:check, test:run (215/215), build all pass
  • Built dist/ is byte-identical to a Bun build of main, and npm pack --dry-run lists the same 8 files

🤖 Generated with Claude Code

Bun was only the package manager and CI runner; the SDK already builds
with tsup and tests with vitest on Node. Switching to pnpm aligns it with
the rest of the toolchain and adds pnpm's supply-chain protections.

prettier is held at ~3.6.2, the version the Bun lockfile resolved, so
formatting is unchanged. The built dist/ is byte-identical to main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shan8851
shan8851 marked this pull request as ready for review October 29, 2026 13:54
@shan8851
shan8851 requested review from taylanpince and removed request for taylanpince October 29, 2026 13:54
@shan8851
shan8851 merged commit c6cec56 into main Oct 29, 2026
4 checks passed
@shan8851
shan8851 deleted the chore/migrate-bun-to-node-pnpm branch October 29, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants