Skip to content

Commit 6328a2c

Browse files
codebamclaude
andcommitted
docs: use npm instead of bun in the self-hosting instructions
The README told self-hosters to run bun install/bunx, and the make targets and pre-commit hook it points at shelled out to bun too. Swap them all to npm/npx and convert the root workspace scripts from --filter to --workspace so the documented path works with only npm installed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GaLeuxVikb3iH2Etw2tHe7
1 parent 1b1a467 commit 6328a2c

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

.githooks/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ echo "🔍 Running pre-commit checks..."
1010

1111
# 1. Type checking / Build (Full project)
1212
echo "🏗️ Running full build check..."
13-
bun run build
13+
npm run build
1414

1515
echo "✅ All pre-commit checks passed!"

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
.PHONY: build clean deploy deploy-bot deploy-webapp
22

33
build:
4-
bun run build
4+
npm run build
55

66
clean:
77
rm -rf webapp/.svelte-kit
88
rm -rf bot/dist
99

1010
deploy-bot:
11-
bun run --cwd bot deploy
11+
npm run deploy --workspace bot
1212

1313
deploy-webapp:
14-
bun run --cwd webapp build
15-
bun run --cwd webapp deploy
14+
npm run build --workspace webapp
15+
npm run deploy --workspace webapp
1616

1717
deploy: deploy-bot deploy-webapp

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This is a monorepo containing:
2727
2. **Install dependencies**:
2828

2929
```sh
30-
bun install
30+
npm install
3131
```
3232

3333
3. **Set up Git hooks** (runs the full build on every commit):
@@ -39,7 +39,7 @@ This is a monorepo containing:
3939
4. **Authenticate wrangler**:
4040

4141
```sh
42-
bunx wrangler login
42+
npx wrangler login
4343
```
4444

4545
## Deployment
@@ -54,10 +54,10 @@ This is a monorepo containing:
5454

5555
```sh
5656
cd bot
57-
bunx wrangler secret put SECRET_TELEGRAM_API_TOKEN --env production
58-
bunx wrangler secret put SECRET_TELEGRAM_WEBHOOK --env production # webhook shared secret
59-
bunx wrangler secret put SECRET_ADMIN_TOKEN --env production # guards GET /?command=set
60-
bunx wrangler secret put TAVILY_API_KEY --env production # optional, web search
57+
npx wrangler secret put SECRET_TELEGRAM_API_TOKEN --env production
58+
npx wrangler secret put SECRET_TELEGRAM_WEBHOOK --env production # webhook shared secret
59+
npx wrangler secret put SECRET_ADMIN_TOKEN --env production # guards GET /?command=set
60+
npx wrangler secret put TAVILY_API_KEY --env production # optional, web search
6161
```
6262

6363
Repeat with `--env dev` for the development worker.
@@ -66,7 +66,7 @@ This is a monorepo containing:
6666

6767
```sh
6868
make deploy-bot
69-
# or: cd bot && bunx wrangler deploy --env production
69+
# or: cd bot && npx wrangler deploy --env production
7070
```
7171

7272
4. **Register the webhook** (once per deploy target):
@@ -83,7 +83,7 @@ The web app is a SvelteKit project deployed to Cloudflare Pages.
8383

8484
```sh
8585
make deploy-webapp
86-
# or: cd webapp && bun run build && bunx wrangler pages deploy .svelte-kit/cloudflare
86+
# or: cd webapp && npm run build && npx wrangler pages deploy .svelte-kit/cloudflare
8787
```
8888

8989
### Everything
@@ -98,8 +98,8 @@ make deploy
9898
make build # Build all projects
9999
make clean # Clean build artifacts
100100

101-
bun run --cwd bot start # local worker via wrangler dev
102-
bun run --cwd webapp dev # local webapp via vite
101+
npm run start --workspace bot # local worker via wrangler dev
102+
npm run dev --workspace webapp # local webapp via vite
103103
```
104104

105105
## Continuous Deployment

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"packages/*"
1111
],
1212
"scripts": {
13-
"build": "bun run --filter webapp build && bun run --filter bot build",
14-
"deploy": "bun run --filter bot deploy && bun run --filter webapp deploy",
13+
"build": "npm run build --workspace webapp && npm run build --workspace bot",
14+
"deploy": "npm run deploy --workspace bot && npm run deploy --workspace webapp",
1515
"docs": "node scripts/build-docs.mjs",
1616
"ncu": "npx npm-check-updates -u --root",
1717
"ncu:interactive": "npx npm-check-updates -i --root",

0 commit comments

Comments
 (0)