mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(core): Fix dir in module path resolution for Docker (#16725)
This commit is contained in:
@@ -54,7 +54,7 @@ export class ModuleRegistry {
|
||||
// docker
|
||||
const n8nPackagePath = require.resolve('n8n/package.json');
|
||||
const n8nRoot = path.dirname(n8nPackagePath);
|
||||
modulesDir = path.join(n8nRoot, 'src', 'modules');
|
||||
modulesDir = path.join(n8nRoot, 'dist', 'modules');
|
||||
} catch {
|
||||
// local dev
|
||||
const dir = process.env.NODE_ENV === 'test' ? 'src' : 'dist';
|
||||
|
||||
Reference in New Issue
Block a user