Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion demo/bin/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ function findGhosttyWeb() {
// Use require.resolve to find the installed ghostty-web package
try {
const ghosttyWebMain = require.resolve('ghostty-web');
const ghosttyWebRoot = path.dirname(ghosttyWebMain.replace(/[/\\]dist[/\\].*$/, ''));
// Strip dist/... from path to get package root (regex already gives us the root)
const ghosttyWebRoot = ghosttyWebMain.replace(/[/\\]dist[/\\].*$/, '');
const distPath = path.join(ghosttyWebRoot, 'dist');
const wasmPath = path.join(ghosttyWebRoot, 'ghostty-vt.wasm');

Expand Down