chore: bump all packages to 0.4.0, fix exports for publish

- 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>
This commit is contained in:
2026-05-13 20:46:00 +08:00
parent 9d9c00df98
commit ca644dabaa
17 changed files with 92 additions and 83 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ for name, dirname in name_to_dir.items():
local_deps = set()
for section in ('dependencies', 'devDependencies', 'peerDependencies'):
for dep, ver in data.get(section, {}).items():
if dep.startswith('@uncaged/') and dep in name_to_dir and ver == 'workspace:*':
if dep.startswith('@uncaged/') and dep in name_to_dir and ver.startswith('workspace:'):
local_deps.add(dep)
deps_graph[name] = local_deps