From 8380c49ad5f0edbb4c25934e6a1a36a492b7fafd Mon Sep 17 00:00:00 2001 From: Guillaume Galy Date: Tue, 10 Dec 2024 10:48:15 +0100 Subject: [PATCH] fix: Missing recursive option when creating tmp directory --- js/cli/src/dependencies/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/cli/src/dependencies/index.ts b/js/cli/src/dependencies/index.ts index a242551..50db6be 100644 --- a/js/cli/src/dependencies/index.ts +++ b/js/cli/src/dependencies/index.ts @@ -101,7 +101,7 @@ const getResolvedBundle = (bundlePath: string): ResolvedBundle => ({ const downloadAndInstallBundle = async (options: BundleOptions) => { const tmpFolder = path.join(options.gatlingHome, "tmp"); if (!fsSync.existsSync(tmpFolder)) { - await fs.mkdir(tmpFolder); + await fs.mkdir(tmpFolder, { recursive: true }); } const tmpFile = path.join(tmpFolder, "bundle-download.zip");