From 04b40fa04a65ac53a5e48c97c974852211aa3592 Mon Sep 17 00:00:00 2001 From: Jan-Henrik Damaschke Date: Wed, 2 Oct 2024 11:17:40 +0200 Subject: [PATCH] fix(preset): Archiver follows symlinks Fixes #2114 --- src/presets/azure/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/presets/azure/utils.ts b/src/presets/azure/utils.ts index d81c06a1f0..ac92af46ee 100644 --- a/src/presets/azure/utils.ts +++ b/src/presets/azure/utils.ts @@ -210,7 +210,7 @@ function _zipDirectory(dir: string, outfile: string): Promise { return new Promise((resolve, reject) => { archive - .directory(dir, false) + .glob("**/*", { cwd: dir, nodir: true, dot: true, follow: true }) .on("error", (err: Error) => reject(err)) .pipe(stream);