Remove duplicate frontend assets from wheel to reduce package size (#4567)

The wheel currently ships frontend/public/, frontend/src/, and
frontend/*.lock alongside frontend/dist/. These are build-time inputs
that Vite already copies into dist/ during the build step:

- public/ is copied verbatim into dist/ by vite build (28.6 MB duplicate)
- src/ is TSX source compiled into dist/assets/*.js (2.1 MB, not used at runtime)
- *.lock files are package manager lockfiles (0.9 MB, not used at runtime)

The backend only serves from frontend/dist/ (see main.py setup_frontend
and run.py frontend_path). Nothing references public/ or src/ at runtime.

This drops the wheel from ~62.7 MB to ~31 MB.
This commit is contained in:
Daniel Han 2026-03-24 23:48:49 -07:00 committed by GitHub
commit 3108750bb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,12 +46,9 @@ studio = [
"*.ps1",
"*.bat",
"frontend/dist/**/*",
"frontend/public/**/*",
"frontend/src/**/*",
"frontend/*.json",
"frontend/*.ts",
"frontend/*.js",
"frontend/*.lock",
"frontend/*.html",
"frontend/*.yaml",
"frontend/.git*",