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
+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": {