Skip to content

Commit e42a0d9

Browse files
authored
feat: set minimum node version to 18
fixes #2415
1 parent 3dbb992 commit e42a0d9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.husky/pre-commit

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npx lint-staged

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"lint": "eslint .",
1616
"semantic-release": "semantic-release",
1717
"semantic-release-dry": "semantic-release --dry-run --branches $CI_BRANCH",
18-
"prepare": "husky install"
18+
"prepare": "husky"
1919
},
2020
"mocha": {
2121
"require": "test/setup-env.js",
@@ -35,7 +35,7 @@
3535
},
3636
"homepage": "https://github.com/adobe/helix-cli#readme",
3737
"engines": {
38-
"node": ">=14"
38+
"node": ">=18"
3939
},
4040
"dependencies": {
4141
"@adobe/fetch": "4.1.8",

test/cli.test.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ describe('hlx command line', () => {
9494
'10.0.0', 0,
9595
'11.1.0', 0,
9696
'12.20.1', 0,
97-
'14.15.4', 1,
97+
'14.15.4', 0,
98+
'16.0.4', 0,
99+
'18.3.1', 1,
100+
'20.17.0', 1,
98101
];
99102
for (let i = 0; i < testVersions.length; i += 2) {
100103
let out = '';

0 commit comments

Comments
 (0)