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