more logging at runtime
This commit is contained in:
		| @@ -23,8 +23,8 @@ const picoDirPath = path.resolve(__dirname, "..", "..", "..", "pico8"); | |||||||
| const picoBinPath = path.resolve(picoDirPath, "pico8"); | const picoBinPath = path.resolve(picoDirPath, "pico8"); | ||||||
|  |  | ||||||
| // const {stdout, } = await execa(picoBinPath, ["/home/dylan/.lexaloffle/pico-8/carts/candles/candles.p8", "-export", path.join(__dirname, "result.js")]); | // const {stdout, } = await execa(picoBinPath, ["/home/dylan/.lexaloffle/pico-8/carts/candles/candles.p8", "-export", path.join(__dirname, "result.js")]); | ||||||
| const {stdout, } = await execa("ls", ["-la", picoDirPath]); | // const {stdout, } = await execa("ls", ["-la", picoDirPath]); | ||||||
| console.log(stdout); | // console.log(stdout); | ||||||
|  |  | ||||||
| // const {stdout: stdout2, } = await execa(picoBinPath, ["-x"]); | // const {stdout: stdout2, } = await execa(picoBinPath, ["-x"]); | ||||||
| // console.log(stdout2); | // console.log(stdout2); | ||||||
| @@ -56,6 +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}); | ||||||
|  | 	console.log(stdout); | ||||||
| 	await execa(picoBinPath, [path.join(repoPath, manifest.main), "-export", path.join(repoPath, "result.js")], {shell: true}); | 	await execa(picoBinPath, [path.join(repoPath, manifest.main), "-export", path.join(repoPath, "result.js")], {shell: true}); | ||||||
| 	// 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"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 dylan
					dylan