Fix deploy command to explicitly specify worker entry point

- Changed deploy to directly specify src/worker.ts
- Removed npm run build (not needed for Workers, wrangler bundles itself)
- Fixes CI/CD 'Missing entry-point' error
This commit is contained in:
2025-11-07 23:12:43 +01:00
parent 6909984892
commit 9bc4c4d40e

View File

@@ -9,7 +9,7 @@
"dev": "ts-node src/index.ts", "dev": "ts-node src/index.ts",
"start": "node dist/index.js", "start": "node dist/index.js",
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"deploy": "npm run build && npx wrangler deploy" "deploy": "npx wrangler deploy src/worker.ts"
}, },
"devDependencies": { "devDependencies": {
"@cloudflare/workers-types": "^4.20251014.0", "@cloudflare/workers-types": "^4.20251014.0",