Update ide-setup.js - add missing glob require (#514)
Co-authored-by: Brian <bmadcode@gmail.com>
This commit is contained in:
@@ -706,6 +706,7 @@ class IdeSetup extends BaseIdeSetup {
|
|||||||
// Check common tasks
|
// Check common tasks
|
||||||
const commonTasksDir = path.join(installDir, 'common', 'tasks');
|
const commonTasksDir = path.join(installDir, 'common', 'tasks');
|
||||||
if (await fileManager.pathExists(commonTasksDir)) {
|
if (await fileManager.pathExists(commonTasksDir)) {
|
||||||
|
const glob = require('glob');
|
||||||
const commonTaskFiles = glob.sync('*.md', { cwd: commonTasksDir });
|
const commonTaskFiles = glob.sync('*.md', { cwd: commonTasksDir });
|
||||||
allTaskIds.push(...commonTaskFiles.map((file) => path.basename(file, '.md')));
|
allTaskIds.push(...commonTaskFiles.map((file) => path.basename(file, '.md')));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user