add logging
This commit is contained in:
		| @@ -18,6 +18,8 @@ const handler = async ({payload}: FirRouteInput<typeof payloadT>) => { | ||||
| 	if (!fs.existsSync("./repos")) { | ||||
| 		fs.mkdirSync("./repos", {recursive: true}) | ||||
| 	} | ||||
| 	console.log(manifest); | ||||
| 	console.log("cloning..."); | ||||
| 	await git.clone({ | ||||
| 		fs, | ||||
| 		http, | ||||
| @@ -33,7 +35,9 @@ const handler = async ({payload}: FirRouteInput<typeof payloadT>) => { | ||||
| 		dir: "./repos", | ||||
| 		url: manifest.repo, | ||||
| 	}); | ||||
| 	console.log("cloned"); | ||||
| 	const localManifest = JSON.parse(await fs.promises.readFile("./repos/picobook.json", "utf8")); | ||||
| 	console.log("read local manifest"); | ||||
| 	fs.promises.rm("./repos"); | ||||
| 	console.log({ | ||||
| 		manifest, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 dylan
					dylan