Fix npx execution issue with bmad CLI

- Added wrapper script (bmad.js) at root to handle npx execution context
- Fixed module resolution in tools/installer/bin/bmad.js for both local and npx contexts
- Updated package.json bin paths to use the wrapper script
- Handles temporary npx directories properly using execSync

This fixes the issue where `npx github:bmadcode/BMAD-METHOD#v4-alpha bmad`
was dropping into a shell instead of executing the command.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Brian Madison
2025-06-13 09:01:52 -05:00
parent 8d788b6f49
commit 6e63bf2241
4 changed files with 69 additions and 8 deletions

View File

@@ -18,8 +18,8 @@ BMAD-METHOD (Breakthrough Method of AgileAI Driven Development) transforms softw
- Scrum Master: Story generation and sprint planning
- Developer: Code implementation
- QA Specialist: Testing and quality assurance
- BMAD Orchestrator: Role transformation via slash commands
- BMAD Master: Universal executor of all capabilities
- BMAD Orchestrator: Role transformation via slash commands and BMAD Method Tutor
- BMAD Master: Universal executor of all capabilities without role switching
### Team Configurations
@@ -37,10 +37,10 @@ BMAD-METHOD (Breakthrough Method of AgileAI Driven Development) transforms softw
### Option 1: Web Bundles (No Installation)
1. Download pre-built bundles from `web-bundles/`
1. Download pre-built bundles from `bmad-core/web-bundles/`
2. Upload to ChatGPT or Gemini
3. Set instructions: "Your critical operating instructions are attached, you ARE the BMad Agent..."
4. Start with `/help` command
4. Start with `/help` command if unsure what to do!
### Option 2: IDE Integration