From 4aae203f4548decd304ae119ffaab709a2d28e3d Mon Sep 17 00:00:00 2001 From: amu Date: Thu, 29 Sep 2022 21:43:15 +0800 Subject: [PATCH] Corrected app directory --- src/tooling/piral-cli/src/apps/debug-pilet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tooling/piral-cli/src/apps/debug-pilet.ts b/src/tooling/piral-cli/src/apps/debug-pilet.ts index 32a37940f..3e58c68a2 100644 --- a/src/tooling/piral-cli/src/apps/debug-pilet.ts +++ b/src/tooling/piral-cli/src/apps/debug-pilet.ts @@ -305,7 +305,7 @@ export async function debugPilet(baseDir = process.cwd(), options: DebugPiletOpt checkSanity(pilets); await hooks.beforeApp?.({ appInstanceDir, pilets }); - const appDirs = [appInstanceDir] || (await getOrMakeApps(pilets[0], logLevel)); + const appDirs = appInstanceDir ? [appInstanceDir] : (await getOrMakeApps(pilets[0], logLevel)); await Promise.all( appDirs.map(async (appDir) => {