Skip to content

Commit

Permalink
[chore] Bump minimum node version requirement to >= v6 (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars authored and bjoerge committed Nov 2, 2017
1 parent 7fbb035 commit bb5403e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: node_js
node_js:
- '4'
- '6'
- '8'
cache: yarn
Expand Down
4 changes: 2 additions & 2 deletions packages/@sanity/cli/bin/sanity.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

var nodeVersion = Number(process.version.replace(/^v/i, '').split('.', 2)[0])

if (nodeVersion < 4) {
console.error('ERROR: Node.js version 4 or higher required. You are running ' + process.version)
if (nodeVersion < 6) {
console.error('ERROR: Node.js version 6 or higher required. You are running ' + process.version)
process.exit(1)
} else {
require('../lib/cli')()
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"posttest": "eslint ."
},
"engines": {
"node": ">=4.0.0"
"node": ">=6.0.0"
},
"repository": {
"type": "git",
Expand Down
3 changes: 3 additions & 0 deletions packages/@sanity/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"test": "mocha --recursive test/**/*.test.js",
"posttest": "eslint ."
},
"engines": {
"node": ">=6.0.0"
},
"keywords": [
"sanity",
"cms",
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/import-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"sanity-import": "./lib/sanity-import.js"
},
"engines": {
"node": ">=4.0.0"
"node": ">=6.0.0"
},
"author": "Sanity.io <hello@sanity.io>",
"license": "MIT",
Expand Down

0 comments on commit bb5403e

Please sign in to comment.