From 4f141e682181134d9594dfee2edbf748f6be2d69 Mon Sep 17 00:00:00 2001 From: Ben Stickley <35735118+bestickley@users.noreply.github.com> Date: Fri, 17 Nov 2023 12:57:37 -0500 Subject: [PATCH] fix: windows archive with powershell (#171) --- src/utils/create-archive.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/create-archive.ts b/src/utils/create-archive.ts index 4f6ae378..01564f9e 100644 --- a/src/utils/create-archive.ts +++ b/src/utils/create-archive.ts @@ -31,6 +31,7 @@ export function createArchive({ directory, zipFileName, fileGlob = '.', quiet }: // TODO: test on windows execSync(`Compress-Archive -Path '${directory}\\*' -DestinationPath '${zipFilePath}' -CompressionLevel Optimal`, { stdio: 'inherit', + shell: 'powershell.exe', }); } else { execSync(`zip -ryq9 '${zipFilePath}' ${fileGlob}`, {