Migrate build system from Vite to tsdown#546
Merged
bartveneman merged 5 commits intomainfrom Mar 17, 2026
Merged
Conversation
- Replace vite build with tsdown, enabling publint validation - Add @codecov/rollup-plugin (replacing @codecov/vite-plugin) - Remove unused devDependencies: vite, vite-plugin-dts, @codecov/vite-plugin, c8 - Update package.json exports to match tsdown output (dist/index.js) - Add tsdown.config.ts based on format-css example https://claude.ai/code/session_012Hndn7eo63B8aQnnqcg8ir
publint now runs as part of the tsdown build (publint: true), so the separate lint-package job is redundant. https://claude.ai/code/session_012Hndn7eo63B8aQnnqcg8ir
publint now runs automatically as part of tsdown (publint: true), so the separate lint-package step is no longer needed. https://claude.ai/code/session_012Hndn7eo63B8aQnnqcg8ir
- Add --coverage flag to vitest npm script - Add @vitest/coverage-v8 devDependency - Simplify code-coverage CI step to use npm test directly https://claude.ai/code/session_012Hndn7eo63B8aQnnqcg8ir
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #546 +/- ##
=========================================
+ Coverage 0 95.36% +95.36%
=========================================
Files 0 18 +18
Lines 0 970 +970
Branches 0 308 +308
=========================================
+ Hits 0 925 +925
- Misses 0 36 +36
- Partials 0 9 +9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Remove redundant entry pattern (src/index.ts auto-discovered) - Ignore @vitest/coverage-v8 (used implicitly via --coverage flag) https://claude.ai/code/session_012Hndn7eo63B8aQnnqcg8ir
Bundle ReportChanges will decrease total bundle size by 23.56kB (-25.98%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: analyzeCss-esmAssets Changed:
|
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
This PR migrates the project's build system from Vite to tsdown, a more lightweight and specialized tool for building TypeScript libraries.
Key Changes
vite.config.jswhich used Vite with the dts plugin for building and type generationtsdown.config.tswith tsdown as the new build tool, configured with:src/index.tsneutral(for universal compatibility)@codecov/vite-pluginwith@codecov/rollup-pluginviteandvite-plugin-dtsdependenciesc8(coverage tool)tsdownas the new build tool./dist/css-analyzer.jsto./dist/index.jsbuildcommand fromvite buildtotsdownNotable Details
@projectwallace/css-parser)https://claude.ai/code/session_012Hndn7eo63B8aQnnqcg8ir