Skip to content
This repository was archived by the owner on Sep 11, 2026. It is now read-only.

build: declare @types/node only in devDependencies - #20

Open
antobinary wants to merge 1 commit into
node-24from
dedupe-types-node
Open

antobinary wants to merge 1 commit into
node-24from
dedupe-types-node

Conversation

@antobinary

Copy link
Copy Markdown
Member

What

Drops the duplicate @types/node entry from dependencies, keeping the one in
devDependencies.

Why

@types/node was declared in both sections, and the two had drifted apart
(^20.3.1 against ^20.4.4) before they were aligned in the Node 24 PR. It
supplies build-time typings only — nothing under src/ imports it at runtime
and it contributes nothing to the emitted bundle.

npm already resolved it as a dev-only package, so installs are unaffected. This
just makes package.json say what npm was already doing.

Testing

Against Node 24.20.0:

  • npm ci — PASS
  • npx tsc — PASS
  • npm run lint — PASS
  • npm run build-bundle — PASS

Notes for review

One line out of package.json plus the matching lock line. Depends on the Node
24 PR and should merge after it.

@types/node was listed in both dependencies and devDependencies, and the
two had drifted apart before they were aligned on ^24.13.3. It supplies
build-time typings only, so keep the devDependencies entry and drop the
duplicate.

npm already resolved it as a dev-only package, so installs are unaffected;
this just makes package.json say what npm was already doing.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved review issues remain.

Pull request overview

Moves @types/node to development-only dependencies.

Changes:

  • Removes the duplicate production dependency.
  • Updates lockfile metadata.
File summaries
File Description
package.json Removes @types/node from dependencies.
package-lock.json Synchronizes dependency metadata.
Review details
  • Files reviewed: 1/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants