mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(cli): use absolute paths for loading custom nodes and credentials (#4099)
custom-node loading broke because of this change, as we started using relative paths for the files returned by `glob` #4082
This commit is contained in:
committed by
GitHub
parent
a8127dfc05
commit
43c9f019bd
@@ -115,9 +115,10 @@ export class ImportWorkflowsCommand extends Command {
|
||||
inputPath = inputPath.replace(/\\/g, '/');
|
||||
}
|
||||
|
||||
inputPath = inputPath.replace(/\/$/g, '');
|
||||
|
||||
const files = await glob('*.json', { cwd: inputPath });
|
||||
const files = await glob('*.json', {
|
||||
cwd: inputPath,
|
||||
absolute: true,
|
||||
});
|
||||
|
||||
totalImported = files.length;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user