Fixed: "glob" is not defined
This commit is contained in:
parent
ab70baca59
commit
8c7ea128d4
|
|
@ -512,6 +512,7 @@ class IdeSetup extends BaseIdeSetup {
|
||||||
|
|
||||||
async getCoreTaskIds(installDir) {
|
async getCoreTaskIds(installDir) {
|
||||||
const allTaskIds = [];
|
const allTaskIds = [];
|
||||||
|
const glob = require('glob');
|
||||||
|
|
||||||
// Check core tasks in .bmad-core or root only
|
// Check core tasks in .bmad-core or root only
|
||||||
let tasksDir = path.join(installDir, '.bmad-core', 'tasks');
|
let tasksDir = path.join(installDir, '.bmad-core', 'tasks');
|
||||||
|
|
@ -520,7 +521,6 @@ class IdeSetup extends BaseIdeSetup {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (await fileManager.pathExists(tasksDir)) {
|
if (await fileManager.pathExists(tasksDir)) {
|
||||||
const glob = require('glob');
|
|
||||||
const taskFiles = glob.sync('*.md', { cwd: tasksDir });
|
const taskFiles = glob.sync('*.md', { cwd: tasksDir });
|
||||||
allTaskIds.push(...taskFiles.map((file) => path.basename(file, '.md')));
|
allTaskIds.push(...taskFiles.map((file) => path.basename(file, '.md')));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue