Repository navigation
fix(app): keep TypeScript out of CLI release bundles - #167
Merged
Merged
Conversation
Install manifest extraction tooling in a dedicated frozen file-preview runtime instead of importing its TypeScript compiler into the standalone CLI. Parse app source in a credential-free Bun subprocess, then validate profile scope before starting the lakehouse proxy. Preserve published preview runtime dependencies without adding compiler tooling to generated starter apps. Verify single-file previews through both JavaScript and native CLI artifacts.
Check the uncompressed standalone JavaScript bundle in the shared builder used by CI, npm packaging, and every native release target. Report actual size and fail before compilation or publication when the budget is exceeded. The fixed bundle is 891,100 bytes; the shipped v1.13.0 bundle at 9,680,174 bytes fails this guard. Cover missing artifacts and budget boundaries, and document how to investigate future growth.
Leave 30,500 bytes of headroom above the current bundle and trim redundant documentation while preserving dependency upgrade guidance. Update and verify the exact budget boundaries.
leonkenneth
approved these changes
Oct 21, 2026
francoischalifour
pushed a commit
that referenced
this pull request
Oct 21, 2026
🤖 I have created a release *beep* *boop* --- ## [1.13.1](v1.13.0...v1.13.1) (2026-10-21) ### Bug Fixes * **app:** keep TypeScript out of CLI release bundles ([#167](#167)) ([dc8fb6b](dc8fb6b)) * **release:** prepare release PRs after draft publication ([#166](#166)) ([58b23a2](58b23a2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Move single-file app manifest extraction into a cached preview runtime with frozen dependencies. Parse source in a subprocess, validate the selected profile scope, then start the lakehouse proxy.
Reduce the JavaScript bundle from 9.68 MB to 891 KB. Enforce a 1 MiB uncompressed budget in the shared builder used by CI, npm packaging, and native release builds.
Why
app dev --fileimported manifest tooling that pulled the entire TypeScript compiler into every CLI download. A dynamic import delayed initialization but still bundled the compiler. The preview tools now install alongside the cached runtime when needed.Verification
Checklist
CHANGELOG.mdupdated