1 |
|
2 |
|
3 | var match = process.version.match(/v(\d+)\.(\d+)/)
|
4 | var major = parseInt(match[1], 10)
|
5 | var minor = parseInt(match[2], 10)
|
6 |
|
7 | if (major >= 9 || (major === 8 && minor >= 6)) {
|
8 | require('standard-engine').cli(require('../options'))
|
9 | } else {
|
10 | console.error('standard: Node 8 or greater is required. `standard` did not run.')
|
11 | }
|