Skip to content

[AI] fix(ci): a lock file npm ci accepts - #1

Merged
s-celles merged 1 commit into
mainfrom
fix/ci-node-24
Nov 28, 2026
Merged

s-celles merged 1 commit into
mainfrom
fix/ci-node-24

Conversation

@s-celles-bot

@s-celles-bot s-celles-bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Summary

npm ci failed in CI, and locally too: wrangler's cloudflare package needs @types/node 18, while vitest asks, as an optional peer, for 24 or later. npm resolved the two differently on install and on ci, which made the lock file invalid (@types/node, undici-types).

  • @types/node ^24 is now a declared dev dependency. The 18 stays nested under cloudflare.
  • The lock file is made again.
  • CI and Deploy run Node 24, and package.json declares engines.node >= 24.

Tests

Locally, from an empty node_modules: npm ci, tsc --noEmit and vitest run (5 tests) pass.

`npm ci` refused the lock file: wrangler's `cloudflare` package needs
@types/node 18 while vitest asks, optionally, for 24 or later, and npm
resolved the two differently on install and on ci. @types/node 24 is now
a declared dev dependency (the 18 stays nested under cloudflare), and the
lock file is made again. CI and Deploy run Node 24, as package.json says.

Assisted-by: AI
@s-celles-bot s-celles-bot changed the title [AI] fix(ci): Node 24, as the lock file was made with [AI] fix(ci): a lock file npm ci accepts Nov 28, 2026
@s-celles
s-celles merged commit 0c0ffb1 into main Nov 28, 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