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.

chore: the generated UI widget prefabs stop reporting themselves as modified

yhhd18f2a7b9684
diff --git a/.gitattributes b/.gitattributes
index d88fb28e2..5888a6df4 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -2,3 +2,10 @@
# Pin the line ending so a CRLF checkout on Windows can't masquerade as API drift
# and fail the CI api-surface guard on a Linux runner.
sdk/etc/*.api.md text eol=lf
+
+# The built-in UI widget prefabs and the data module beside them are rewritten
+# with LF by tests/ui-widget-prefabs.gen.test.ts every time the suite runs. Left
+# unpinned they check out as CRLF, so the index's cached size never matches what
+# the generator just wrote and git reports ten modified files with no diff in
+# them — for as long as anyone runs the tests.
+sdk/src/ui/widgets/prefabs/* text eol=lf
diff --git a/desktop/.gitignore b/desktop/.gitignore
index 884df0c77..28d083f8e 100644
--- a/desktop/.gitignore
+++ b/desktop/.gitignore
@@ -5,6 +5,12 @@ release
*.log
.DS_Store
+# Scratch bundles: a headless run of an electron-only module esbuilds it to .mjs
+# in a temp directory here (inside desktop/, so its `import 'esbuild'` resolves),
+# and a run that dies before its cleanup leaves the directory behind.
+.dl-*/
+.export-*/
+
# Synced from the engine/SDK build (build-tools/tasks/sync.js) — generated, not source.
public/sdk/
public/wasm/