From f861db0b434453639aecada16c1614c47b137c91 Mon Sep 17 00:00:00 2001 From: dylan <> Date: Wed, 27 Mar 2024 21:06:58 -0700 Subject: [PATCH] add in a log --- src/server/api/release.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/api/release.ts b/src/server/api/release.ts index f518198..6bcda82 100644 --- a/src/server/api/release.ts +++ b/src/server/api/release.ts @@ -54,7 +54,8 @@ const handler = async ({payload}: FirRouteInput) => { console.log("main exists: ", fs.existsSync(path.join(repoPath, manifest.main))); // const {stdout} = await execa("ls", ["-la", picoDirPath], {shell: true}); // console.log(stdout); - await pico8.export(path.join(repoPath, manifest.main), path.join(repoPath, "result.js")); + const exported=await pico8.export(path.join(repoPath, manifest.main), path.join(repoPath, "result.js")); + console.log((exported as any).stdout); // await execa(picoBinPath, [path.join(repoPath, manifest.main), "-export", path.join(repoPath, "result.js")]); // await execa(picoBinPath, [path.join(repoPath, manifest.main), "-export", path.join(repoPath, "result.png")]); const js = await fs.promises.readFile(path.join(repoPath, "result.js"), "utf8");