Fixed: "glob" is not defined (#504)

Co-authored-by: Brian <bmadcode@gmail.com>
This commit is contained in:
Yuewen Ma 2025-09-06 19:16:10 +01:00 committed by GitHub
parent 94f67000b2
commit ac7f2437f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -690,6 +690,7 @@ class IdeSetup extends BaseIdeSetup {
async getCoreTaskIds(installDir) {
const allTaskIds = [];
const glob = require('glob');
// Check core tasks in .bmad-core or root only
let tasksDir = path.join(installDir, '.bmad-core', 'tasks');
@ -698,7 +699,6 @@ class IdeSetup extends BaseIdeSetup {
}
if (await fileManager.pathExists(tasksDir)) {
const glob = require('glob');
const taskFiles = glob.sync('*.md', { cwd: tasksDir });
allTaskIds.push(...taskFiles.map((file) => path.basename(file, '.md')));
}