feat: adopt @changesets/cli for synchronized version management #243
Reference in New Issue
Block a user
Delete Branch "feat/changesets-version-management"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Adopt
@changesets/cliwith fixed mode + fix package exports, bump all to 0.4.0.Merges #241 and #242 into one PR.
Why
import指向./src/index.ts,但发布的 tarball 只含dist/,消费者装了找不到入口scripts/publish.sh手动 bump,容易不同步Changes
Exports 修复
bun条件(本地开发走 src)import指向./dist/index.js(npm 消费者走 dist)types指向./dist/index.d.tsChangesets 版本管理
.changeset/config.json: fixed mode["@uncaged/*"],ignore dashboardpackage.json: 新增changeset/version/release脚本publish.sh: 兼容workspace:^前缀版本
@uncaged/*包 → 0.4.0(viachangeset version)Usage
Ref
Closes #241, Closes #242
5339ad15b6to522afdd4bdLGTM. Clean infrastructure PR — exports fix is correct (bun condition for dev, dist for npm consumers), changesets config looks good with fixed mode, and the publish.sh workspace prefix fix is a nice catch.