Repository navigation
chore: migrate next tooling to bun, tsdown, and biome - #199
Merged
Merged
Conversation
- switch package manager pnpm -> bun (bun.lock, drop pnpm-lock) - replace tsup with tsdown: esm + cjs for all 3 entries with single .d.ts, plus the iife global bundle - replace eslint with biome (biome.json, .editorconfig) - bump dev deps to latest, clearing advisories in the old toolchain (vitepress rc, vitest 0.34, tsx 3, typescript-eslint) - update CI/CD to bun + OIDC staged publishing; add codecov + vercel config - fix unawaited toMatchFileSnapshot in manager test (vitest 5 enforces it) and its malformed snapshot path - bump version to 3.0.0-alpha.14
vitepress pins vite 5 (no ./module-runner export); vitest 5 needs vite 6+. Node test workers resolved the top-level vite 5 and crashed with ERR_PACKAGE_PATH_NOT_EXPORTED. Add vite ^7 as a direct devDep so the modern vite sits at top level; vitepress keeps its nested vite 5.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## next #199 +/- ##
==========================================
- Coverage 99.95% 99.44% -0.52%
==========================================
Files 87 89 +2
Lines 4461 2337 -2124
Branches 481 260 -221
==========================================
- Hits 4459 2324 -2135
- Misses 2 13 +11 🚀 New features to boost your workflow:
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Mirrors the
maintoolchain migration on the v3 alpha branch and updates dependencies to clear security advisories in the old toolchain.bun.lock,pnpm-lock.yamlremoved)index,helpers,svg) with a single.d.tsper entry, plus the IIFE global bundle (DXFWriter). Correct.cjs/.mjsextensions.biome.json,.editorconfig)1.0.0-rc.4→^1.6.4, vitest0.34→^5,@vitest/coverage-v8→^5, typescript →^7,@types/node→^22, vue →^3.5; dropped tsx and@typescript-eslint/*. This clears the vulnerabilities from the old vitepress-rc / vite / esbuild / vitest chain.tsconfig.build.json(extends base) for the build; keeps the@/*alias.npm stage publish) matching the trusted publisher. Addedcodecov.ymland bun-basedvercel.json.manager.test.tshad an unawaitedtoMatchFileSnapshotwith a malformed path; vitest 5 enforces awaiting async assertions. Awaited it and moved the snapshot to__snapshots__/manager.line.snap.3.0.0-alpha.13→3.0.0-alpha.14Verified locally
bun install --frozen-lockfile✓bun run build— all entries + IIFE emit ✓bun run test— 78/78 pass ✓bun run coverage— 99% statements / 99.66% lines ✓bun run docs:build✓