mirror of
https://github.com/danbulant/heaventaker
synced 2026-07-05 03:00:46 +00:00
debug logs
This commit is contained in:
parent
3c45c3776a
commit
24ff73b6d3
1 changed files with 2 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ async function convertFolder({ folder, production, base, out, ref }) {
|
||||||
const promises = [];
|
const promises = [];
|
||||||
for(const file of await fs.readdir(folder)) {
|
for(const file of await fs.readdir(folder)) {
|
||||||
const loc = path.join(folder, file);
|
const loc = path.join(folder, file);
|
||||||
|
console.log(loc, file);
|
||||||
const stat = await fs.stat(loc);
|
const stat = await fs.stat(loc);
|
||||||
if(stat.isDirectory()) {
|
if(stat.isDirectory()) {
|
||||||
promises.push(convertFolder({ folder: loc, production, base, out }));
|
promises.push(convertFolder({ folder: loc, production, base, out }));
|
||||||
|
|
@ -41,7 +42,7 @@ export function makeImages({ folders, production }) {
|
||||||
await fs.mkdir(out, { recursive: true });
|
await fs.mkdir(out, { recursive: true });
|
||||||
const ref = this;
|
const ref = this;
|
||||||
folders = folders.map(folder => path.join(base, folder));
|
folders = folders.map(folder => path.join(base, folder));
|
||||||
await Promise.all(folders.map(folder => convertFolder({ folder, production, base, out, ref })));
|
await Promise.all(folders.map(folder => convertFolder({ folder, production, base, out, ref }).catch(e => console.warn(e))));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue