Skip to content

chore: enforce Node version strictly#11

Merged
sergdort merged 1 commit intomainfrom
chore/node-engine-strict
Mar 4, 2026
Merged

chore: enforce Node version strictly#11
sergdort merged 1 commit intomainfrom
chore/node-engine-strict

Conversation

@LogenNineFingersIsAlive
Copy link
Collaborator

@LogenNineFingersIsAlive LogenNineFingersIsAlive commented Mar 3, 2026

Summary

  • add .node-version (22) for explicit version manager support
  • add .npmrc with engine-strict=true to fail fast on wrong Node runtime

Why

Prevents silent native module ABI mismatches (e.g. better-sqlite3) when commands run outside interactive shell auto-switch hooks.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR tightens Node.js runtime enforcement across developer machines and automation by adding standard version-manager and package-manager configuration, reducing the risk of native module ABI mismatches (e.g., better-sqlite3) caused by running commands under the wrong Node major.

Changes:

  • Add .node-version with Node major 22 for broader version manager support.
  • Add .npmrc with engine-strict=true so installs fail fast when package.json#engines is not satisfied.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.npmrc Enforces engines.node compatibility checks during installs via engine-strict=true.
.node-version Pins the intended Node major version (22) for version managers that read .node-version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sergdort sergdort merged commit 74a4005 into main Mar 4, 2026
5 checks 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.

3 participants