Browse Source

Merge pull request #792 from Jiajun0413/fix/npm-node-shebang

fix(cli): use node shebang so npx/npm install works without bun
Alvin 3 weeks ago
parent
commit
eaab3ee3c1
2 changed files with 8 additions and 1 deletions
  1. 7 0
      README.md
  2. 1 1
      src/cli/index.ts

+ 7 - 0
README.md

@@ -101,6 +101,13 @@ Install and configure oh-my-opencode-slim: https://raw.githubusercontent.com/alv
 bunx oh-my-opencode-slim@latest install
 ```
 
+The published CLI is a Node-compatible bundle, so `npx` works too if you don't
+have Bun installed:
+
+```bash
+npx oh-my-opencode-slim@latest install
+```
+
 ### Run from Master
 
 Use this if you want the latest code, easier bug fixes, or a local setup for

+ 1 - 1
src/cli/index.ts

@@ -1,4 +1,4 @@
-#!/usr/bin/env bun
+#!/usr/bin/env node
 import { doctor, parseDoctorArgs } from './doctor';
 import { install } from './install';
 import { getGeneratedPresetNames, isGeneratedPresetName } from './providers';