diff --git a/src/run.ts b/src/run.ts index d5827fe..608dabb 100644 --- a/src/run.ts +++ b/src/run.ts @@ -22,14 +22,13 @@ export async function run() { intro("Welcome. Let's get you started. ✨"); const isDebugMode = hasDebugFlag(process.argv); + const bundlePath = path.resolve(fileURLToPath(import.meta.url), ".."); + if (isDebugMode) { log.warn("Debug mode is enabled"); + log.info(`Bundle path: ${bundlePath}`); } - const bundlePath = path.resolve(fileURLToPath(import.meta.url), ".."); - - // log.info(bundlePath); - const name = (await text({ initialValue: "", message: "What is the name of your app?", @@ -50,8 +49,6 @@ export async function run() { }, })) as string; - // log.warn(`isDebugMode: ${isDebugMode}`); - const destinationDir = `${process.cwd()}${ isDebugMode ? "/tmp/" : "/" }${name}`;