chore: migrate from npm to pnpm

This commit is contained in:
2026-05-13 10:18:17 +07:00
parent 186b428b67
commit 44465ad30e
5 changed files with 2518 additions and 4244 deletions
+7 -4
View File
@@ -10,12 +10,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 11
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- run: npm ci
- run: npm test
- run: npx wrangler deploy --dry-run
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm test
- run: pnpm exec wrangler deploy --dry-run
env:
CLOUDFLARE_API_TOKEN: dummy
+2 -2
View File
@@ -63,7 +63,7 @@ Each fire shows up in *History* with status code and response body — open `cla
```bash
git clone https://github.com/tiennm99/claude-code-routine-trigger-worker
cd claude-code-routine-trigger-worker
npm install
pnpm install
# Upload secrets (from Anthropic routine editor → API trigger)
echo -n 'https://api.anthropic.com/v1/claude_code/routines/trig_.../fire' \
@@ -153,7 +153,7 @@ curl "http://localhost:8787/__scheduled?cron=*+*+*+*+*"
### Tests
```bash
npm test
pnpm test
```
Vitest runs in the Workers runtime via `@cloudflare/vitest-pool-workers`. Tests mock `fetch`, so they consume no Anthropic quota.
-4238
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -5,6 +5,7 @@
"type": "module",
"private": true,
"license": "Apache-2.0",
"packageManager": "pnpm@11.1.1",
"main": "worker.js",
"scripts": {
"dev": "wrangler dev",
+2508
View File
File diff suppressed because it is too large Load Diff