Commit 808d24b
committed
fix(demo): correct path resolution for ghostty-web package
The findGhosttyWeb() function was incorrectly resolving the package root
path. The regex /[/\\]dist[/\\].*$/ already strips the path down to
the package root (e.g., '/path/to/node_modules/ghostty-web'), but then
path.dirname() was called which removed one more directory level,
resulting in '/path/to/node_modules' instead.
This caused the 'Could not find ghostty-web package' error when running
npx @ghostty-web/demo because it was looking for the WASM file and dist
folder in node_modules/ instead of node_modules/ghostty-web/.
Fixes the issue where npx @ghostty-web/demo@next fails with:
Error: Could not find ghostty-web package.1 parent c447ff4 commit 808d24b
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
0 commit comments