| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
- Swap vite + vite-plugin-dts for tsdown (with publint peer dep) - Add tsdown.config.js: ESM format, neutral platform (isomorphic), dts generation, publint enabled, deps.neverBundle for external dep, outExtension preserving .js file extensions - Remove vite.config.js - Update build script to `tsdown` - Remove lint-package CI job (publint now runs as part of the build) https://claude.ai/code/session_01VzmRVmcLD7znsBCH2V5Hg7
tsdown automatically excludes package.json dependencies from bundling, so explicitly listing @projectwallace/css-analyzer is unnecessary. https://claude.ai/code/session_01VzmRVmcLD7znsBCH2V5Hg7
Source files: - Convert all src/*.js → src/*.ts with proper TypeScript types - Add src/types.ts with shared Analysis, GuardResult, and Guard types - Annotate all guard functions with Analysis parameter type - Replace JSDoc @PARAM annotations with TypeScript types - Remove @ts-expect-error in complexity.ts (use 'as Specificity' cast instead) - Keep @ts-expect-error in index.ts for overloaded analyze() return type mismatch Test files: - Convert all src/*.test.js → src/*.test.ts - Replace uvu (suite/assert) with vitest (describe/it/expect) - Remove uvu .run() calls; wrap tests in describe() blocks Config: - package.json: replace uvu with vitest, update test script to vitest run - tsconfig.json: remove allowJs/checkJs (pure TypeScript now), update include to .ts - tsdown.config.js: update entry points to .ts https://claude.ai/code/session_01VzmRVmcLD7znsBCH2V5Hg7
Replace 'latest' with installed semver ranges for publint, tsdown, and vitest to ensure reproducible installs. https://claude.ai/code/session_01VzmRVmcLD7znsBCH2V5Hg7
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
This PR replaces the Vite build system with tsdown, a more lightweight and specialized tool for building TypeScript/JavaScript libraries. The migration simplifies the build configuration and removes unnecessary build-related CI steps.
Key Changes
Notable Details
https://claude.ai/code/session_01VzmRVmcLD7znsBCH2V5Hg7