Skip to content

Modernize Node/npm setup: switch workflows to latest Node, centralize legacy peer deps, and align React type packages#71

Merged
hanszhoou merged 2 commits intomasterfrom
copilot/update-node-version-and-types
Feb 24, 2026
Merged

Modernize Node/npm setup: switch workflows to latest Node, centralize legacy peer deps, and align React type packages#71
hanszhoou merged 2 commits intomasterfrom
copilot/update-node-version-and-types

Conversation

Copy link
Contributor

Copilot AI commented Feb 24, 2026

This PR updates repository/tooling configuration to use the latest Node runtime in CI, removes scattered --legacy-peer-deps flags by centralizing the setting in .npmrc, and upgrades React type package ranges to ^18.0.0.

  • CI runtime updates

    • Replaced node-version: "20.9.0" with node-version: "latest" across all GitHub Actions workflows that set up Node:
      • deploy.yml
      • update-from-issue.yml
      • update-from-csv.yml (both jobs)
      • patch-from-csv.yml
      • copilot-setup-steps.yml
  • npm peer-deps behavior centralized

    • Added root .npmrc:
      legacy-peer-deps=true
    • Removed explicit --legacy-peer-deps flags from workflow commands and package scripts (including iw in package.json), so installs/builds rely on repo-level npm config instead of per-command flags.
  • React type definitions aligned to React 18

    • Updated package.json:
      • @types/react^18.0.0
      • @types/react-dom^18.0.0
    • Regenerated lockfile entries to reflect the new ranges.
  • Docs/config references cleaned up

    • Updated install/runtime guidance in:
      • README.md
      • .github/copilot-instructions.md
    • Removed references instructing use of --legacy-peer-deps directly.

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: hanszhoou <63733714+hanszhoou@users.noreply.github.com>
Copilot AI changed the title [WIP] Update to latest Node version and .npmrc configuration Modernize Node/npm setup: switch workflows to latest Node, centralize legacy peer deps, and align React type packages Feb 24, 2026
Copilot AI requested a review from hanszhoou February 24, 2026 05:47
@hanszhoou hanszhoou marked this pull request as ready for review February 24, 2026 05:50
@hanszhoou hanszhoou merged commit df34506 into master Feb 24, 2026
1 check passed
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.

2 participants