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:
कारतोफ्फेलस्क्रिप्ट™
2022-09-14 10:37:51 +02:00
committed by GitHub
parent a8127dfc05
commit 43c9f019bd
3 changed files with 9 additions and 6 deletions

View File

@@ -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;