Add minimum npm & node version requirements

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.
This commit is contained in:
pixie-cheeks
2024-06-04 13:56:14 +05:30
parent 2154dcec4a
commit c79a878fce
3 changed files with 9 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
engine-strict=true
+4
View File
@@ -16,6 +16,10 @@
"jest": "^29.6.4", "jest": "^29.6.4",
"jest-cli": "^29.6.4", "jest-cli": "^29.6.4",
"plop": "^4.0.1" "plop": "^4.0.1"
},
"engines": {
"node": ">=18.0.0",
"npm": ">=8.5.5"
} }
}, },
"node_modules/@aashutoshrathi/word-wrap": { "node_modules/@aashutoshrathi/word-wrap": {
+4
View File
@@ -22,6 +22,10 @@
"jest-cli": "^29.6.4", "jest-cli": "^29.6.4",
"plop": "^4.0.1" "plop": "^4.0.1"
}, },
"engines": {
"npm": ">=8.5.5",
"node": ">=18.0.0"
},
"scripts": { "scripts": {
"test": "jest", "test": "jest",
"generate": "plop" "generate": "plop"