Skip to content

Commit

Permalink
feat: add "engines" to package.json and ensure strict checks
Browse files Browse the repository at this point in the history
  • Loading branch information
novusnota committed Sep 17, 2024
1 parent d958f3f commit 1944ced
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Adding a mandatory check of "engines" property in package.json
# Works for npm and pnpm. Yarn is strict by default, Bun seems to be that way too
engine-strict=true
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,8 @@
}
}
},
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"engines": {
"node": ">=22.0.0"
}
}

0 comments on commit 1944ced

Please sign in to comment.