Updates - #252
Merged
Merged
Conversation
- migrate to tsdown (drop commonjs default fix) - migrate typescript to 6.x
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
There was a problem hiding this comment.
Pull request overview
This PR migrates the library build pipeline from tsup to tsdown, updates package entrypoints/type export wiring for dual ESM/CJS publishing, and modernizes CI and dependency versions to improve long-term compatibility.
Changes:
- Switch build/watch scripts and bundler config from
tsuptotsdown, adjusting output expectations to.cjs/.mjsand per-condition type exports. - Update
package.jsonexportsandtypesmetadata to explicitly provide ESM/CJS runtime entries and corresponding.d.mts/.d.ctstype entries. - Refresh GitHub Actions versions and add a workspace config file to control build approvals and dependency overrides.
Reviewed changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tsconfig.json | Removes downlevelIteration from compiler options while keeping ES2020 target/no-emit settings. |
| pnpm-workspace.yaml | Adds pnpm workspace-level build allowances and dependency overrides (esbuild/vite). |
| package.json | Migrates to tsdown, updates exports/type entrypoints, refreshes dev dependencies, and pins pnpm via packageManager. |
| CLAUDE.md | Updates contributor documentation to reflect the tsdown build pipeline. |
| .github/workflows/ci.yml | Updates action versions and keeps validate/publish jobs for CI and tagged releases. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
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.



This pull request updates the build system and configuration for the project, moving from
tsuptotsdown, and improves type export handling and package compatibility. It also modernizes CI dependencies and updates several development dependencies for better compatibility and maintenance.Build system migration and configuration:
tsupwithtsdownfor building the package, updating related scripts and configuration inpackage.jsonand documentation inCLAUDE.md. The build now outputs named exports and cleans the dist folder by default. [1] [2] [3] [4] [5]package.jsonto use.cjs,.mjs, and.cts/.mtsfiles, improving compatibility with modern bundlers and TypeScript. [1] [2]Dependency and CI updates:
.github/workflows/ci.ymlto their latest major/minor versions for improved security and reliability. [1] [2] [3]package.json, including@arethetypeswrong/cli,@gilbarbara/eslint-config,@types/node,@types/react,@vitejs/plugin-react,@vitest/coverage-v8,prettier,react,react-dom,start-server-and-test,typescript, andvitest. Also removed unused dependencies (del-cli,fix-tsup-cjs,tsup).Workspace and build tool overrides:
pnpm-workspace.yamlwith explicit build tool allowances and overrides foresbuildandviteversions to ensure consistent builds across environments.