Skip to content

Commit 26afea6

Browse files
committed
chore: remove postinstall script
Building WASM should be an explicit step, not part of dependency installation. Changes: - Remove postinstall script from package.json - Update README.md to remove postinstall mention - Update INSTALL.md to clarify git installs need manual build Benefits: - fmt/lint/typecheck CI jobs no longer need Zig or submodules - Cleaner separation: install = deps, build = artifacts - Users have explicit control over when WASM is built
1 parent 638c596 commit 26afea6

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

INSTALL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ npm install github:coder/ghostty-web
2020
bun add github:coder/ghostty-web
2121
```
2222

23-
**Note:** When installing from git, the package automatically builds itself via a `postinstall` script. This requires Bun to be installed and may take a few seconds during installation.
23+
**Note:** Git installs require manually building the package first. See [Local Development](#local-development) for build instructions.
2424

2525
## Basic Usage
2626

@@ -91,7 +91,7 @@ ws.onmessage = (event) => {
9191

9292
## WASM File Handling
9393

94-
The library requires the `ghostty-vt.wasm` file at runtime. When installing from npm, the WASM is pre-built and included. When installing from git, it's built during `postinstall`.
94+
The library requires the `ghostty-vt.wasm` file at runtime. When installing from npm, the WASM is pre-built and included in the package.
9595

9696
### Local Development
9797

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ Or install from GitHub:
1414
npm install github:coder/ghostty-web
1515
```
1616

17-
**Note:** Git installs will auto-build during `postinstall` (requires Bun).
18-
1917
## Quick Start
2018

2119
```typescript

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@
5858
"fmt:fix": "prettier --write .",
5959
"lint": "biome check .",
6060
"lint:fix": "biome check --write .",
61-
"prepublishOnly": "bun run test && bun run build",
62-
"postinstall": "[ -d dist ] || bun run build"
61+
"prepublishOnly": "bun run test && bun run build"
6362
},
6463
"devDependencies": {
6564
"@biomejs/biome": "^1.9.4",

0 commit comments

Comments
 (0)