Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

fix(gates): the document validator reads what was authored, not what was packaged

yhh455e48234f1c
diff --git a/build-tools/tasks/validate-documents.js b/build-tools/tasks/validate-documents.js
index 185d5de92..213ad5135 100644
--- a/build-tools/tasks/validate-documents.js
+++ b/build-tools/tasks/validate-documents.js
@@ -28,7 +28,7 @@ function walkDocuments(dir, out) {
let st;
try { st = statSync(full); } catch { continue; }
if (st.isDirectory()) {
- if (SKIP_DIRS.has(entry)) continue;
+ if (SKIP_DIRS.has(entry) || entry.startsWith('dist-')) continue;
walkDocuments(full, out);
} else if (EXTENSIONS.some((ext) => entry.endsWith(ext))) {
out.push(full);