actually check it exists
This commit is contained in:
parent
d6ae5a3ec0
commit
90570e4ec2
@ -46,7 +46,8 @@ const handler = async ({payload}: FirRouteInput<typeof payloadT>) => {
|
|||||||
console.log("cloned");
|
console.log("cloned");
|
||||||
console.log("read local manifest");
|
console.log("read local manifest");
|
||||||
console.log("pico exists: ", fs.existsSync(picoBinPath));
|
console.log("pico exists: ", fs.existsSync(picoBinPath));
|
||||||
console.log("main exists: ", path.join(repoPath, manifest.main));
|
console.log("manifest exists: ", fs.existsSync(path.join(repoPath, "picobook.json")));
|
||||||
|
console.log("main exists: ", fs.existsSync(path.join(repoPath, manifest.main)));
|
||||||
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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user