diff --git a/packages/cli/commands/import/credentials.ts b/packages/cli/commands/import/credentials.ts index af2d7e0d46..38835ed7fd 100644 --- a/packages/cli/commands/import/credentials.ts +++ b/packages/cli/commands/import/credentials.ts @@ -21,7 +21,7 @@ import { } from 'n8n-workflow'; import * as fs from 'fs'; -import * as glob from 'glob-promise'; +import * as glob from 'fast-glob'; import * as path from 'path'; export class ImportCredentialsCommand extends Command { diff --git a/packages/cli/commands/import/workflow.ts b/packages/cli/commands/import/workflow.ts index 65ddb77000..2d9a3ac136 100644 --- a/packages/cli/commands/import/workflow.ts +++ b/packages/cli/commands/import/workflow.ts @@ -16,7 +16,7 @@ import { } from 'n8n-workflow'; import * as fs from 'fs'; -import * as glob from 'glob-promise'; +import * as glob from 'fast-glob'; import * as path from 'path'; import { UserSettings, diff --git a/packages/cli/package.json b/packages/cli/package.json index 04b803526b..55a8b62c70 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -98,8 +98,8 @@ "csrf": "^3.1.0", "dotenv": "^8.0.0", "express": "^4.16.4", + "fast-glob": "^3.2.5", "flatted": "^2.0.0", - "glob-promise": "^3.4.0", "google-timezones-json": "^1.0.2", "inquirer": "^7.0.1", "json-diff": "^0.5.4", diff --git a/packages/cli/src/LoadNodesAndCredentials.ts b/packages/cli/src/LoadNodesAndCredentials.ts index 777fa0bb00..037293dfc2 100644 --- a/packages/cli/src/LoadNodesAndCredentials.ts +++ b/packages/cli/src/LoadNodesAndCredentials.ts @@ -22,8 +22,8 @@ import { readdir as fsReaddir, readFile as fsReadFile, stat as fsStat, - } from 'fs/promises'; -import * as glob from 'glob-promise'; +} from 'fs/promises'; +import * as glob from 'fast-glob'; import * as path from 'path'; const CUSTOM_NODES_CATEGORY = 'Custom Nodes'; diff --git a/packages/nodes-base/nodes/ReadBinaryFiles.node.ts b/packages/nodes-base/nodes/ReadBinaryFiles.node.ts index 509402bb21..af7b3f9b12 100644 --- a/packages/nodes-base/nodes/ReadBinaryFiles.node.ts +++ b/packages/nodes-base/nodes/ReadBinaryFiles.node.ts @@ -4,7 +4,7 @@ import { INodeType, INodeTypeDescription, } from 'n8n-workflow'; -import * as glob from 'glob-promise'; +import * as glob from 'fast-glob'; import * as path from 'path'; import { diff --git a/packages/nodes-base/package.json b/packages/nodes-base/package.json index 93508d7133..de42d71c59 100644 --- a/packages/nodes-base/package.json +++ b/packages/nodes-base/package.json @@ -652,9 +652,9 @@ "cron": "^1.7.2", "eventsource": "^1.0.7", "fflate": "^0.7.0", + "fast-glob": "^3.2.5", "formidable": "^1.2.1", "get-system-fonts": "^2.0.2", - "glob-promise": "^3.4.0", "gm": "^1.23.1", "iconv-lite": "^0.6.2", "ics": "^2.27.0",