fixes asynchronous error with gitkeep, but do not process them

pull/64/head 0.4.0-rc1
macniel 2025-11-01 11:28:30 +01:00
parent 373781b5b0
commit db81e2def1
1 changed files with 24 additions and 22 deletions

View File

@ -68,6 +68,7 @@ const convert = function (from, to, ofType, overwrite = true) {
if (statSync(join(source, file)).isDirectory()) {
await filewalker(join(source, file))
} else {
if (file.endsWith(".json")) {
console.debug("processing file", join(source, file))
let originalSource = JSON.parse(readFileSync(join(source, file), {encoding: "utf8"}))
promises.push(new Promise((resolve2) => {
@ -94,6 +95,7 @@ const convert = function (from, to, ofType, overwrite = true) {
}
}
}
}
filewalker(SOURCE)