Skip to content
Merged
Show file tree
Hide file tree
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
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,19 @@ npm run build
npm test
```

### Build output bundling

The published `dist/index.js` and `dist/tui.js` files are bundled with esbuild. This keeps `@headsdown/sdk` inlined in the distributed artifacts so consumers do not pull it as a transitive runtime dependency.

Build commands:

```bash
esbuild src/index.ts --bundle --platform=node --format=esm --outfile=dist/index.js --external:@opencode-ai/plugin
esbuild src/tui.ts --bundle --platform=node --format=esm --outfile=dist/tui.js --external:@opencode-ai/plugin
```

`@opencode-ai/plugin` stays external because it is provided by the OpenCode host at runtime.

### Local plugin toggle helper

Use `scripts/toggle-headsdown-plugin.sh` from a target OpenCode project to switch between:
Expand Down
Loading