From 7c760c282bbac4ab8e304d0f4c3f0f6c5496358d Mon Sep 17 00:00:00 2001 From: ewc340 Date: Sat, 5 Mar 2022 13:14:56 -0800 Subject: [PATCH] Filter booleans out of appPaths when zipping --- release.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/release.ts b/release.ts index 6a0fcb40..ae13434d 100644 --- a/release.ts +++ b/release.ts @@ -60,16 +60,15 @@ async function pack(args: Args) { return; } + // If appPath is a boolean, then we assume package for platform already exists, so no need to do anything + const appPathsToZip = appPaths.filter((appPath) => typeof appPath == 'string') as string[]; + map( - appPaths, - async (appPath: string | boolean) => { - if (appPath == true) { - // Package for platform already exists, so no need to do anything - return; - } + appPathsToZip, + async (appPath: string) => { console.log(`Zipping ${appPath}`); - await zip(appPath as string); + await zip(appPath); }, { concurrency: appPaths.length } );