add in a log

This commit is contained in:
dylan 2024-03-27 21:06:58 -07:00
parent 5efaddb6f0
commit f861db0b43

View File

@ -54,7 +54,8 @@ const handler = async ({payload}: FirRouteInput<typeof payloadT>) => {
console.log("main exists: ", fs.existsSync(path.join(repoPath, manifest.main))); console.log("main exists: ", fs.existsSync(path.join(repoPath, manifest.main)));
// const {stdout} = await execa("ls", ["-la", picoDirPath], {shell: true}); // const {stdout} = await execa("ls", ["-la", picoDirPath], {shell: true});
// console.log(stdout); // 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.js")]);
// await execa(picoBinPath, [path.join(repoPath, manifest.main), "-export", path.join(repoPath, "result.png")]); // 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"); const js = await fs.promises.readFile(path.join(repoPath, "result.js"), "utf8");