add logging
This commit is contained in:
parent
8eb2b392cd
commit
83bb775e28
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user