Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Check for Node v6 or later #80

Merged
merged 1 commit into from
Apr 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"commander": "^2.9.0",
"generator-feathers": "1.0.2",
"generator-feathers-plugin": "0.10.0",
"semver": "^5.3.0",
"yeoman-environment": "^1.6.6"
},
"devDependencies": {
Expand Down
6 changes: 6 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import yeoman from 'yeoman-environment';
import program from 'commander';
import meta from 'generator-feathers/meta';
import semver from 'semver';

const env = yeoman.createEnv();

Expand All @@ -23,6 +24,11 @@ module.exports = function(argv, generatorOptions = {
program.version(require('../package.json').version)
.usage('generate [type]');

if(!semver.satisfies(process.version, '>= 6.0.0')) {
console.error('The Feathers CLI and generated application requires Node v6.0.0 or later.');
return process.exit(1);
}

program.command('generate [type]')
.alias('g')
.description(description)
Expand Down