Skip to content

chore: modernize build toolchain - #16

Merged
zenyui merged 1 commit into
mainfrom
chore/build-modernization
Jul 5, 2026
Merged

zenyui merged 1 commit into
mainfrom
chore/build-modernization

Conversation

@zenyui

@zenyui zenyui commented Jul 5, 2026

Copy link
Copy Markdown
Owner
  • replace rollup/babel/jest with tsup + vitest
  • add exports map with proper esm/cjs entrypoints; fix broken cjs resolution under type: module
  • declare react as a peerDependency and mark it external
  • stop bundling react into output — tarball drops 121kB → 3.7kB
  • set sideEffects: false, target es2020, moduleResolution: bundler
  • exclude test files from the published package
  • add CI workflow (typecheck / test / build)
  • add release workflow (publish on GitHub release with npm provenance)

- replace rollup/babel/jest with tsup and vitest
- add exports map with proper esm/cjs entrypoints and fix cjs resolution
- declare react as peerDependency, mark react external, set sideEffects false
- stop bundling react into output (tarball 121kB -> 3.7kB)
- bump target to es2020, moduleResolution bundler
- exclude test files from published package
- add GitHub Actions CI (typecheck/test/build) and release workflow with provenance
@zenyui
zenyui merged commit f222cea into main Jul 5, 2026
1 check passed
@zenyui
zenyui deleted the chore/build-modernization branch July 5, 2026 18:27
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