Skip to content

Conversation

@sreya
Copy link
Contributor

@sreya sreya commented Nov 25, 2025

No description provided.

The module-level init() was added in PR #60 but demo/bin/demo.js
was not updated to call it, causing:
  'ghostty-web not initialized. Call init() before creating Terminal instances.'
- Add --dev flag to demo/bin/demo.js for Vite hot-reload
- Dev mode serves from TypeScript source with HMR
- Production mode unchanged (serves built dist/)
- Remove redundant demo/server/ folder (pty-server.ts, file-browser-server.ts)
- Add 'demo' and 'demo:dev' scripts to root package.json

New workflow:
  bun run demo      # Production (serves dist/)
  bun run demo:dev  # Development (Vite hot-reload)
@sreya sreya merged commit c8e683e into main Nov 25, 2025
5 checks passed
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.

1 participant