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.

feat(gates): the shared build door must derive the cook options, not inherit undefined

esengine50eaed58a33f
diff --git a/tools/check-project-health.mjs b/tools/check-project-health.mjs
index a4691b546..5ce96f90d 100644
--- a/tools/check-project-health.mjs
+++ b/tools/check-project-health.mjs
@@ -119,6 +119,13 @@ else {
if (!/reason: 'preflight-blocked'/.test(door[0])) {
say(STORE, 'a refused build is not distinguishable from a failed one — it owes reason: preflight-blocked');
}
+ // What a project's assets cook as is the PROJECT's, so the shared door has to
+ // derive it. Left to each caller, an agent's build shipped a raw PNG and no
+ // basis transcoder where the dialog's shipped a KTX2 and one — same project.
+ if (!/cookOptionsOf\(/.test(door[0])) {
+ say(STORE, 'exportGame does not derive the cook options from the project — a caller that'
+ + ' says nothing gets `undefined`, which is not what the project asked for');
+ }
}
// 5c. No door reaches around the store to the bridge: a tool naming the exporter