Look in the local cache for module installer
Looks in the local _cfg custom module cache location for the module, in case the module is one that was sourced from an external location
This commit is contained in:
parent
cf50f4935d
commit
fca70dd0c8
|
|
@ -1122,7 +1122,13 @@ class ModuleManager {
|
||||||
if (moduleName === 'core') {
|
if (moduleName === 'core') {
|
||||||
sourcePath = getSourcePath('core');
|
sourcePath = getSourcePath('core');
|
||||||
} else {
|
} else {
|
||||||
sourcePath = await this.findModuleSource(moduleName);
|
// First check if module is in cache (for custom modules installed from external directories)
|
||||||
|
const cachePath = path.join(bmadDir, '_cfg', 'custom', moduleName);
|
||||||
|
if (await fs.pathExists(cachePath)) {
|
||||||
|
sourcePath = cachePath;
|
||||||
|
} else {
|
||||||
|
sourcePath = await this.findModuleSource(moduleName);
|
||||||
|
}
|
||||||
if (!sourcePath) {
|
if (!sourcePath) {
|
||||||
// No source found, skip module installer
|
// No source found, skip module installer
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue