fix: align installer dependencies with root package versions for ESM compatibility (#420)

Downgrade chalk, inquirer, and ora in tools/installer to CommonJS-compatible versions:
- chalk: ^5.4.1 -> ^4.1.2
- inquirer: ^12.6.3 -> ^8.2.6
- ora: ^8.2.0 -> ^5.4.1

Resolves 'is not a function' errors caused by ESM/CommonJS incompatibility.
This commit is contained in:
circus
2025-08-10 22:25:46 +08:00
committed by GitHub
parent 85a0d83fc5
commit 3f6b67443d
2 changed files with 345 additions and 549 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -22,12 +22,12 @@
"author": "BMad Team",
"license": "MIT",
"dependencies": {
"chalk": "^5.4.1",
"chalk": "^4.1.2",
"commander": "^14.0.0",
"fs-extra": "^11.3.0",
"inquirer": "^12.6.3",
"inquirer": "^8.2.6",
"js-yaml": "^4.1.0",
"ora": "^8.2.0"
"ora": "^5.4.1"
},
"engines": {
"node": ">=20.0.0"