mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Make the module loading for local dev more generic (#17547)
This commit is contained in:
committed by
GitHub
parent
7330e2d0af
commit
01b95a9ee5
@@ -58,7 +58,8 @@ export class ModuleRegistry {
|
||||
modulesDir = path.join(n8nRoot, dir, 'modules');
|
||||
} catch {
|
||||
// local dev
|
||||
modulesDir = path.resolve(__dirname, '../../../../cli/dist/modules');
|
||||
// n8n binary is inside the bin folder, so we need to go up two levels
|
||||
modulesDir = path.resolve(process.argv[1], '../../dist/modules');
|
||||
}
|
||||
|
||||
for (const moduleName of modules ?? this.eligibleModules) {
|
||||
|
||||
Reference in New Issue
Block a user