WebHooker/package.json
wyf9 cb18683fb8
chore: add db:migrate scripts and document the D1 migration step
- Add npm scripts db:migrate (local) and db:migrate:prod (remote) for
  wrangler d1 migrations apply webhooker
- Document the D1 database creation + migration step in the deployment
  guides (README en/zh, docs en/zh) and AGENTS.md
- Note the d1 execute fallback for databases already migrated manually
2026-08-05 17:39:14 +08:00

37 lines
1.1 KiB
JSON

{
"name": "webhooker",
"version": "0.2.0",
"type": "module",
"scripts": {
"dev": "wrangler dev",
"deploy": "wrangler deploy",
"db:migrate": "wrangler d1 migrations apply webhooker --local",
"db:migrate:prod": "wrangler d1 migrations apply webhooker --remote",
"typecheck": "tsc --noEmit",
"lint": "eslint src/",
"lint:md": "markdownlint '**/*.md' --ignore node_modules --ignore dist",
"format": "prettier --write .",
"format:check": "prettier --check .",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs",
"test": "bun test"
},
"dependencies": {
"hono": "^4.7.0",
"jose": "^6.0.10",
"octokit": "^4.1.0",
"yaml": "^2.7.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^5.20260801.1",
"@typescript-eslint/eslint-plugin": "^8.21.0",
"@typescript-eslint/parser": "^8.21.0",
"eslint": "^9.18.0",
"markdownlint-cli": "^0.49.1",
"prettier": "^3.9.6",
"typescript": "^5.7.0",
"vitepress": "^1.6.4",
"wrangler": "4"
}
}