add logging

This commit is contained in:
dylan 2024-03-26 00:13:42 -07:00
parent 8eb2b392cd
commit 83bb775e28

View File

@ -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,