mirror of
https://github.com/danbulant/heaventaker
synced 2026-05-19 04:18:57 +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 = [];
|
||||
for(const file of await fs.readdir(folder)) {
|
||||
const loc = path.join(folder, file);
|
||||
console.log(loc, file);
|
||||
const stat = await fs.stat(loc);
|
||||
if(stat.isDirectory()) {
|
||||
promises.push(convertFolder({ folder: loc, production, base, out }));
|
||||
|
|
@ -41,7 +42,7 @@ export function makeImages({ folders, production }) {
|
|||
await fs.mkdir(out, { recursive: true });
|
||||
const ref = this;
|
||||
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