Skip to content

Demo the SEA assets config option - #19

Merged
killerwolf merged 1 commit into
mainfrom
feat/sea-assets-demo
Aug 21, 2026
Merged

Demo the SEA assets config option#19
killerwolf merged 1 commit into
mainfrom
feat/sea-assets-demo

Conversation

@killerwolf

Copy link
Copy Markdown
Owner

Closes #10

Embeds assets/greeting.txt into the binary via sea-config.json and reads it back at runtime through node:sea's isSea()/getAsset() — guarded so npm start (plain ts-node, not a SEA) doesn't try to read it.

Also updates the README (project structure, example output, config options section) and prunes "Future Improvements" down to what's actually still open now that tests/CI/Biome exist.

Verified locally: lint clean, tests pass, npm start unaffected, and the built binary prints the embedded asset:

Hello, Final!
This message was bundled directly into the binary via sea-config.json's "assets" field — no external file was shipped alongside the executable to read it from.

Embeds assets/greeting.txt into the binary via sea-config.json and
reads it back at runtime through node:sea's isSea()/getAsset() --
guarded so plain `npm start` (not a SEA) doesn't try to read it.

Updates the README (project structure, example output, config
options section) and prunes "Future Improvements" down to what's
actually still open now that tests/CI/Biome exist.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@killerwolf
killerwolf merged commit b80934c into main Aug 21, 2026
4 checks passed
@killerwolf
killerwolf deleted the feat/sea-assets-demo branch August 21, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Showcase newer SEA config options (assets) in the example

1 participant