Skip to content

Commit

Permalink
Add minimum npm & node version requirements
Browse files Browse the repository at this point in the history
This change will prevent any old node or npm version from installing any
packages. With this, npm will throw an error and exit immediately.
This is to prevent the accidental use of unsupported versions which
might cause some issues that are hard to pin-point.
  • Loading branch information
pixie-cheeks committed Jun 4, 2024
1 parent 2154dce commit c79a878
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
4 changes: 4 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"jest-cli": "^29.6.4",
"plop": "^4.0.1"
},
"engines": {
"npm": ">=8.5.5",
"node": ">=18.0.0"
},
"scripts": {
"test": "jest",
"generate": "plop"
Expand Down

0 comments on commit c79a878

Please sign in to comment.