mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +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
|
// docker
|
||||||
const n8nPackagePath = require.resolve('n8n/package.json');
|
const n8nPackagePath = require.resolve('n8n/package.json');
|
||||||
const n8nRoot = path.dirname(n8nPackagePath);
|
const n8nRoot = path.dirname(n8nPackagePath);
|
||||||
modulesDir = path.join(n8nRoot, 'src', 'modules');
|
modulesDir = path.join(n8nRoot, 'dist', 'modules');
|
||||||
} catch {
|
} catch {
|
||||||
// local dev
|
// local dev
|
||||||
const dir = process.env.NODE_ENV === 'test' ? 'src' : 'dist';
|
const dir = process.env.NODE_ENV === 'test' ? 'src' : 'dist';
|
||||||
|
|||||||
Reference in New Issue
Block a user