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