Skip to content

feat: update package.json in v5 migration recipe#143

Open
Vinayak1337 wants to merge 1 commit into
expressjs:mainfrom
Vinayak1337:feat/package-json-express-v5
Open

feat: update package.json in v5 migration recipe#143
Vinayak1337 wants to merge 1 commit into
expressjs:mainfrom
Vinayak1337:feat/package-json-express-v5

Conversation

@Vinayak1337
Copy link
Copy Markdown

@Vinayak1337 Vinayak1337 commented May 24, 2026

Fixes #113

Summary

  • add package.json dependency update logic directly to the v5 migration recipe
  • update existing package entries that match current direct dependencies from express@5.2.1
  • update related Express type packages
  • cover dependencies, devDependencies, peerDependencies, and optionalDependencies
  • preserve the original package.json line endings when rewriting files

Tests

  • npm run test --workspace @expressjs/v5-migration-recipe
  • npm test
  • npm run lint
  • npx codemod workflow validate --workflow codemods/v5-migration-recipe/workflow.yaml
  • verified the update map covers all current express@5.2.1 direct dependencies without missing or extra entries
  • npx codemod jssg run --language json --target codemods/v5-migration-recipe/src/package-json.ts --allow-dirty --no-interactive, then diffed against the expected output
  • npx codemod workflow run --workflow codemods/v5-migration-recipe/workflow.yaml --target --allow-dirty --no-interactive, then diffed package.json against the expected output
  • verified CRLF package.json input keeps CRLF output to cover Windows checkout behavior
  • git diff --check

Comment thread codemods/v5-migration-recipe/src/package-json.ts
@Vinayak1337 Vinayak1337 force-pushed the feat/package-json-express-v5 branch from e3ec6a1 to a711101 Compare May 24, 2026 18:24
@Vinayak1337 Vinayak1337 changed the title feat: add package.json Express v5 codemod feat: update package.json in v5 migration recipe May 24, 2026
Comment thread codemods/v5-migration-recipe/src/package-json.ts Outdated
@Vinayak1337 Vinayak1337 force-pushed the feat/package-json-express-v5 branch from a711101 to 0256cab Compare May 24, 2026 18:43
@Vinayak1337 Vinayak1337 force-pushed the feat/package-json-express-v5 branch from 0256cab to fbd9b75 Compare May 25, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(v5-migration-recipe): Update the dependencie on package.json.

2 participants