mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-09 09:27:04 +08:00
2.0 KiB
2.0 KiB
name, description
| name | description |
|---|---|
| cf-temp-mail-upgrade-dependencies | Upgrade npm dependencies across all sub-packages of the project. Use when the user asks to upgrade/update dependencies, bump deps, refresh lockfiles, or update wrangler. Runs pnpm upgrades on frontend/, worker/, pages/, and vitepress-docs/, plus npm upgrades on e2e/. |
Upgrade Dependencies
Upgrade npm dependencies for the cloudflare_temp_email sub-packages.
How to run
Execute the project-root script:
bash scripts/update-dependencies.sh
The script runs the following in order:
| Directory | Commands |
|---|---|
frontend/ |
pnpm up + pnpm add -D wrangler@latest |
worker/ |
pnpm up + pnpm add -D wrangler@latest |
pages/ |
pnpm up + pnpm add -D wrangler@latest |
vitepress-docs/ |
pnpm up --latest + pnpm add -D wrangler@latest |
e2e/ |
npx --yes npm-check-updates@23.0.0 --upgrade + npm install + Playwright image validation |
Note: vitepress-docs/ and e2e/ upgrade to the latest versions and may cross semver ranges; other packages upgrade within ranges only. e2e/ uses npm because it has a package-lock.json.
Post-upgrade checklist
- Inspect
git diffonpackage.json,pnpm-lock.yaml, andpackage-lock.jsonfiles for reasonable changes. - Verify builds in each sub-package:
cd frontend && pnpm buildcd worker && pnpm build && pnpm lintcd vitepress-docs && pnpm buildcd e2e && npm test
- If Playwright changed, keep
e2e/Dockerfile.e2eon the matching Playwright image version. - If wrangler had a major version bump, check
worker/wrangler.tomlfor any required syntax changes. - Commit with Conventional Commits format, e.g.
chore: upgrade dependencies.
Do NOT
- Do not manually
pnpm addeach package instead of running the script. - Do not run
pnpm deploylocally — deployments go through GitHub Actions. - Do not update CHANGELOG for routine dep bumps unless the user explicitly requests it.