remove the ls

This commit is contained in:
dylan 2024-03-26 20:33:34 -07:00
parent dd3a5019a1
commit 0d146e0ce2

View File

@ -56,8 +56,8 @@ const handler = async ({payload}: FirRouteInput<typeof payloadT>) => {
console.log("pico exists: ", fs.existsSync(picoBinPath)); console.log("pico exists: ", fs.existsSync(picoBinPath));
console.log("manifest exists: ", fs.existsSync(path.join(repoPath, "picobook.json"))); console.log("manifest exists: ", fs.existsSync(path.join(repoPath, "picobook.json")));
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 execa("pico8", [path.join(repoPath, manifest.main), "-export", path.join(repoPath, "result.js")]); await execa("pico8", [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");