chore: bump all packages to 0.4.0 #241

Closed
xingyue wants to merge 0 commits from chore/bump-0.4.0 into main
Owner

What

Bump 全部 @uncaged/* 包到 0.4.0,修复 exports 让发布后的包能正常工作。

Why

0.3.18 全坏了——exports 指向 ./src/index.ts,但发布的 tarball 只含 dist/,消费者装了根本找不到入口。

Changes

  • Version: 所有 @uncaged/* 包 → 0.4.0
  • Internal deps: workspace:*workspace:^(bun publish 自动解析为 ^0.4.0
  • Exports 三条件:
    • bun: ./src/index.ts(本地 workspace 开发走 src)
    • types: ./dist/index.d.ts
    • import: ./dist/index.js(npm 消费者走 dist)
  • 清理: 删除 6 个包的 main: 'src/index.ts'
  • publish.sh: topo sort 适配 workspace:^ 前缀匹配

Test

218 pass, 0 fail

## What Bump 全部 @uncaged/* 包到 0.4.0,修复 exports 让发布后的包能正常工作。 ## Why 0.3.18 全坏了——exports 指向 `./src/index.ts`,但发布的 tarball 只含 `dist/`,消费者装了根本找不到入口。 ## Changes - **Version**: 所有 @uncaged/* 包 → 0.4.0 - **Internal deps**: `workspace:*` → `workspace:^`(bun publish 自动解析为 `^0.4.0`) - **Exports 三条件**: - `bun`: `./src/index.ts`(本地 workspace 开发走 src) - `types`: `./dist/index.d.ts` - `import`: `./dist/index.js`(npm 消费者走 dist) - **清理**: 删除 6 个包的 `main: 'src/index.ts'` - **publish.sh**: topo sort 适配 `workspace:^` 前缀匹配 ## Test 218 pass, 0 fail ✅
xingyue added 1 commit 2026-05-13 12:46:20 +00:00
- All @uncaged/* packages → 0.4.0
- Internal deps: workspace:* → workspace:^ (resolves to ^0.4.0 on publish)
- Fix exports: add 'bun' condition for local dev (src), 'import' for consumers (dist)
- Remove stale 'main: src/index.ts' from 6 packages
- Fix publish.sh topo sort to match workspace:^ prefix

星月 <xingyue@shazhou.work>
xingyue closed this pull request 2026-05-13 13:24:14 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#241