3 Commits

Author SHA1 Message Date
Roger
db96abfa70 fix: change -d2e to -D in source instead of patching Commander.js
bun build caches Commander.js from npm, making postinstall sed patch
ineffective. Directly changed the flag to single-char -D in:
- src/main.tsx (Option definition)
- src/utils/debug.ts (argv check)

Removed Commander.js patching from postinstall.sh.
2026-04-01 10:28:40 +08:00
Roger
2a862bb2bd fix: auto-patch Commander.js multi-char short flags in postinstall
The source uses -d2e flag which Commander.js rejects (single-char only).
postinstall.sh now patches both:
1. shortFlagExp regex: /^-[^-]$/ → /^-[^-]+$/
2. single-char restriction check disabled

Users no longer need to manually patch node_modules after bun install.
2026-04-01 10:16:20 +08:00
Roger
5ea0b188f5 fix: add postinstall stubs + turndown dep, update build docs
- scripts/postinstall.sh auto-creates @ant/* stubs after bun install
- Add turndown to package.json dependencies
- Update both READMEs with postinstall note in build steps
- Update missing packages section to explain postinstall mechanism
2026-04-01 10:01:37 +08:00