Skip to content

Commit b556a03

Browse files
authored
Merge pull request #280 from developit/fix/check-node-version
fix: check node version
2 parents e6fdcdb + 1b32d9b commit b556a03

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

check.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function () {
1111

1212
const errorMessage = colors.yellow(`
1313
14-
⚠️ preact-cli requires at least node@${minimum}!
14+
⚠️ preact-cli requires at least node@${minimum}!
1515
You have node@${version}
1616
1717
`);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"pretest": "npm run -s build && rimraf ./tests/output",
1717
"test": "jest",
1818
"posttest": "rimraf ./tests/output",
19-
"postinstall": "node check.js",
19+
"postinstall": "node -p 'require(\"./check.js\")()'",
2020
"test:build": "babel-node src build --cwd examples/root",
2121
"test:serve": "npm run -s test:build && babel-node src serve --port 3000 --cwd examples/root",
2222
"test:serve:config": "npm run -s test:build && babel-node src serve --server config --cwd examples/root",

0 commit comments

Comments
 (0)