Skip to content

Commit

Permalink
Filter booleans out of appPaths when zipping
Browse files Browse the repository at this point in the history
  • Loading branch information
ewc340 committed Mar 5, 2022
1 parent d308f6e commit 7c760c2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
);
Expand Down

0 comments on commit 7c760c2

Please sign in to comment.