feat: switch project from pnpm to bun

This commit is contained in:
Bohdan Triapitsyn
2025-12-26 16:45:30 +02:00
parent ba0629f955
commit ff874cc33d
17 changed files with 3055 additions and 12096 deletions
+2 -2
View File
@@ -43,8 +43,8 @@ Currently available for macOS (Apple Silicon).
```bash
git clone https://github.com/btriapitsyn/openchamber.git
cd openchamber
pnpm install
pnpm run desktop:dev
bun install
bun run desktop:dev
```
## License
+1 -1
View File
@@ -21,7 +21,7 @@ function spawnProcess(command, args, opts = {}) {
async function main() {
await startCli();
const tauriProcess = spawnProcess('pnpm', ['-C', desktopDir, 'tauri', 'dev', '--features', 'devtools']);
const tauriProcess = spawnProcess('bun', ['--cwd', desktopDir, 'tauri', 'dev', '--features', 'devtools']);
let cleaning = false;
+1 -1
View File
@@ -2847,7 +2847,7 @@ dependencies = [
[[package]]
name = "openchamber-desktop"
version = "1.3.4"
version = "1.3.5"
dependencies = [
"anyhow",
"axum",
+2 -2
View File
@@ -4,8 +4,8 @@
"version": "1.3.5",
"identifier": "ai.opencode.openchamber",
"build": {
"beforeDevCommand": "pnpm dev",
"beforeBuildCommand": "pnpm build",
"beforeDevCommand": "bun run dev",
"beforeBuildCommand": "bun run build",
"devUrl": "http://127.0.0.1:1421",
"frontendDist": "../dist"
},
+3 -3
View File
@@ -50,9 +50,9 @@ OpenChamber inside VS Code: embeds the OpenChamber chat UI in the activity bar a
## Development
```bash
pnpm install
pnpm -C packages/vscode run build # build extension + webview
pnpm -C packages/vscode exec vsce package --no-dependencies
bun install
bun run --cwd packages/vscode build # build extension + webview
cd packages/vscode && bunx vsce package --no-dependencies
```
## Local Install
+4 -4
View File
@@ -75,15 +75,15 @@
}
},
"scripts": {
"vscode:prepublish": "pnpm run build",
"build": "pnpm run build:extension && pnpm run build:webview",
"vscode:prepublish": "bun run build",
"build": "bun run build:extension && bun run build:webview",
"build:extension": "esbuild src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node --minify",
"build:webview": "VITE_OPENCODE_URL=/api vite build",
"dev": "concurrently -n \"ext,web\" -c \"cyan,magenta\" \"pnpm run watch:extension\" \"pnpm run watch:webview\"",
"dev": "concurrently -n \"ext,web\" -c \"cyan,magenta\" \"bun run watch:extension\" \"bun run watch:webview\"",
"watch:extension": "esbuild src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node --watch --sourcemap",
"watch:webview": "vite build --watch",
"type-check": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.webview.json",
"lint": "pnpm dlx eslint --ext .ts,.tsx src webview",
"lint": "bunx eslint --ext .ts,.tsx src webview",
"package": "vsce package --no-dependencies"
},
"devDependencies": {
+1 -1
View File
@@ -13,7 +13,7 @@ https://github.com/btriapitsyn/openchamber
curl -fsSL https://raw.githubusercontent.com/btriapitsyn/openchamber/main/scripts/install.sh | bash
# Or install manually
npm add -g @openchamber/web # or pnpm, yarn, bun
bun add -g @openchamber/web # or npm, pnpm, yarn
```
## Usage
+1 -1
View File
@@ -12,7 +12,7 @@
"access": "public"
},
"scripts": {
"dev": "pnpm run build:watch",
"dev": "bun run build:watch",
"dev:server": "node server/index.js --port 3001",
"dev:server:watch": "nodemon --watch server --ext js --exec \"node server/index.js --port 3001\"",
"build": "vite build",