build: move from pnpm to npm

Replace pnpm-lock.yaml with package-lock.json. pnpm-workspace.yaml's
allowBuilds becomes package.json#allowScripts, which npm 11 gates the same way,
listing only the packages actually present in the tree.
This commit is contained in:
tiennm99 committed 2026-08-17 13:07:27 +07:00
1 parent 3372d5e96b
commit f69d14e1e2
7 files changed
+3671 -1834

No files matched your search

+4 -5
View File
@@ -10,13 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: '24'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm test
- run: pnpm exec wrangler deploy --dry-run
cache: 'npm'
- run: npm ci
- run: npm test
- run: npx wrangler deploy --dry-run
env:
CLOUDFLARE_API_TOKEN: dummy
+1 -1
View File
@@ -32,7 +32,7 @@ Fully serverless on [Cloudflare Workers](https://workers.cloudflare.com/) (free
```bash
git clone https://github.com/tiennm99/claude-status-webhook.git
cd claude-status-webhook
pnpm install
npm install
```
See [Setup Guide](docs/setup-guide.md) for full deployment instructions.
+3 -3
View File
@@ -23,7 +23,7 @@
```bash
git clone https://github.com/tiennm99/claude-status-webhook.git
cd claude-status-webhook
pnpm install
npm install
```
### 2. Authenticate with Cloudflare
@@ -64,7 +64,7 @@ npx wrangler secret put ADMIN_CHAT_ID
### 5. Deploy
```bash
pnpm deploy
npm run deploy
```
Note the worker URL from the output (e.g., `https://claude-status-webhook.<your-subdomain>.workers.dev`).
@@ -90,7 +90,7 @@ Replace `<WEBHOOK_SECRET>` with the secret you set in step 4.
## Local Development
```bash
pnpm dev
npm run dev
```
This starts a local dev server with wrangler that emulates KV and Queues locally. Test with curl:
+3658
View File
File diff suppressed because it is too large. Load diff
+5 -1
View File
@@ -4,7 +4,6 @@
"description": "[Claude Status](https://status.claude.com/)'s webhook for Telegram bot. Hosted on Cloudflare Workers",
"main": "src/index.js",
"type": "module",
"packageManager": "[email protected]",
"scripts": {
"dev": "wrangler dev",
"deploy": "wrangler deploy",
@@ -31,5 +30,10 @@
"vite": "^8.1.2",
"vitest": "^4.1.9",
"wrangler": "^4.112.0"
},
"allowScripts": {
"esbuild": true,
"sharp": true,
"workerd": true
}
}
-1820
View File
File diff suppressed because it is too large. Load diff
-4
View File
@@ -1,4 +0,0 @@
allowBuilds:
esbuild: true
sharp: true
workerd: true