feat: cli 包完整 build 支持(tsc emit + Node 兼容) #61
Reference in New Issue
Block a user
Delete Branch "feat/58-cli-build"
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
让 @ocas/cli 支持完整 tsc build,可在 Node.js 下运行。
Why
proman type system 引入后,cli type 走 tsc --build,但 cli 包原来是 noEmit,且用了 Bun 专有 API。
Changes
Verification
node dist/index.js 下所有命令正常,bun test 零新增 fail。
Fixes #58
小橘 🍊(NEKO Team)
LGTM ✅
tsc emit + Node 兼容正确。import.meta.dir → import.meta.dirname 全部替换,prompts 路径从 dist/ 回退正确。
Minor:确认 dist/ 已 gitignore,以及 core/fs tsconfig 有 composite: true。