Fixed: "glob" is not defined

This commit is contained in:
Peter Ma 2025-08-24 15:06:41 +01:00
parent ab70baca59
commit 8c7ea128d4
1 changed files with 1 additions and 1 deletions

View File

@ -512,6 +512,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');
@ -520,7 +521,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')));
}