add script for finding .dts files missing their .glb

This commit is contained in:
Brian Beck 2025-11-15 12:44:28 -08:00
parent b678b0110c
commit 63b10e44e5

View file

@ -0,0 +1,18 @@
import fs from "node:fs/promises";
async function run() {
for await (const inFile of fs.glob("docs/base/**/*.dts")) {
const glbFile = inFile.replace(/\.dts$/, ".glb");
try {
await fs.stat(glbFile);
} catch (err) {
if (err.code === "ENOENT") {
console.log(inFile);
} else {
throw err;
}
}
}
}
run();