Skip to content

chore: migrate from pnpm to Bun, bump @vttforge/* to latest - #14

Merged
fcsouza merged 1 commit into
mainfrom
chore/bun-migration
Sep 14, 2026
Merged

fcsouza merged 1 commit into
mainfrom
chore/bun-migration

Conversation

@fcsouza

@fcsouza fcsouza commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Package manager switches to Bun 1.4.2, matching the SDK itself: packageManager field, both CI workflows (pnpm/action-setup + setup-nodeoven-sh/setup-bun), docs, and lockfile (pnpm-lock.yamlbun.lock).
  • pnpm-workspace.yaml is dropped. Its only content was a minimumReleaseAgeExclude allowlist, but the actual minimumReleaseAge threshold wasn't set anywhere in this repo or the machine's pnpm config, so there was nothing live to carry over.
  • Test runner switches from Vitest to bun:test in all four test files. Test count unchanged: 40 tests, 4 files, before and after.
  • @vttforge/core, cli, testing, types and vite-plugin bump to their latest published versions (types jumps three minors: 0.8.0 → 0.11.1).

Test plan

  • bun run typecheck — clean
  • bun test — 40 pass, 0 fail (matches pre-migration baseline)
  • bun run lint — clean
  • bun run build (with the CI's manifest/download URL env vars) — real release zip built, manifest confirmed at zip root

Switches the package manager and test runner to Bun 1.4.2, matching
the SDK itself. package.json's packageManager, both CI workflows
(pnpm/action-setup + setup-node -> oven-sh/setup-bun) and the docs
now point at bun. pnpm-lock.yaml is gone; bun.lock replaces it.
pnpm-workspace.yaml is gone too: its only content was a
minimumReleaseAgeExclude allowlist for an age-gate that had no active
threshold configured anywhere in this repo or the machine, so there
was nothing live to port.

vitest -> bun:test in all four test files. Two of them use
game.settings.get(...) inside expect().toBe(...); bun:test's
matchers bind generically to the subject's inferred type, which
Vitest's did not, so those four call sites needed a narrowing cast.
Test count is unchanged: 40 tests, 4 files, before and after.

@vttforge/core, cli, testing, types and vite-plugin bump to their
latest published versions (types jumps three minors: 0.8.0 -> 0.11.1).
Typecheck, test, lint and a real release-zip build all pass clean
against the bumped set, including the manifest-at-zip-root check.
@fcsouza
fcsouza merged commit 28eac06 into main Sep 14, 2026
1 check passed
@fcsouza
fcsouza deleted the chore/bun-migration branch September 14, 2026 20:10
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.

1 participant