@seflless/ghosttown 1.6.2 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seflless/ghosttown",
3
- "version": "1.6.2",
3
+ "version": "1.10.0",
4
4
  "description": "Web-based terminal emulator using Ghostty's VT100 parser via WebAssembly",
5
5
  "type": "module",
6
6
  "main": "./dist/ghostty-web.umd.cjs",
@@ -51,7 +51,7 @@
51
51
  "access": "public"
52
52
  },
53
53
  "scripts": {
54
- "gt": "node ./bin/ghosttown.js",
54
+ "gt": "npx tsx ./bin/ghosttown.js",
55
55
  "postinstall": "node ./scripts/postinstall.js",
56
56
  "dev": "vite --port 8000",
57
57
  "demo": "node demo/bin/demo.js",
@@ -68,6 +68,7 @@
68
68
  "build": "bun run clean && bun run build:wasm && bun run build:lib && bun run build:wasm-copy",
69
69
  "build:wasm": "./scripts/build-wasm.sh",
70
70
  "build:lib": "vite build",
71
+ "build:cli": "tsc -p tsconfig.cli.json",
71
72
  "build:wasm-copy": "cp ghostty-vt.wasm dist/",
72
73
  "clean": "rm -rf dist",
73
74
  "preview": "vite preview",
@@ -77,7 +78,10 @@
77
78
  "fmt:fix": "prettier --write --cache .",
78
79
  "lint": "biome check .",
79
80
  "lint:fix": "biome check --write .",
80
- "prepublishOnly": "bun run build",
81
+ "test:e2e": "playwright test",
82
+ "test:e2e:headed": "playwright test --headed",
83
+ "test:e2e:ui": "playwright test --ui",
84
+ "prepublishOnly": "bun run build && bun run build:cli",
81
85
  "cli:publish": "node scripts/cli-publish.js",
82
86
  "kill:8080": "kill -9 $(lsof -ti :8080)"
83
87
  },
@@ -93,8 +97,9 @@
93
97
  "@xterm/headless": "^5.5.0",
94
98
  "@xterm/xterm": "^5.5.0",
95
99
  "mitata": "^1.0.34",
96
- "playwright": "^1.57.0",
100
+ "@playwright/test": "^1.49.0",
97
101
  "prettier": "^3.6.2",
102
+ "tsx": "^4.21.0",
98
103
  "typescript": "^5.9.3",
99
104
  "vite": "^4.5.0",
100
105
  "vite-plugin-dts": "^4.5.4"