diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..b6f27f1 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/index.js b/index.js index 74fa21f..ff993cc 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,5 @@ #!/usr/bin/env node -const compareVersions = require('compare-versions'); const path = require('path'); const process = require('process'); @@ -9,13 +8,6 @@ const parser = require('./src/parser'); const writer = require('./src/writer'); (async () => { - // Node version check - const requiredVersion = '12.14.0'; - const currentVersion = process.versions.node; - if (compareVersions(currentVersion, requiredVersion) === -1) { - throw `This script requires Node v${requiredVersion} or higher, but you are using v${currentVersion}.`; - } - // parse any command line arguments and run wizard const config = await wizard.getConfig(process.argv); diff --git a/package-lock.json b/package-lock.json index 51c244c..7408fbb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,6 @@ "camelcase": "^6.0.0", "chalk": "^4.0.0", "commander": "^5.0.0", - "compare-versions": "^3.6.0", "inquirer": "^7.1.0", "luxon": "^3.4.4", "request": "^2.88.2", @@ -451,11 +450,6 @@ "node": ">= 6" } }, - "node_modules/compare-versions": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-3.6.0.tgz", - "integrity": "sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA==" - }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", diff --git a/package.json b/package.json index 8db8874..9325ddb 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,6 @@ "camelcase": "^6.0.0", "chalk": "^4.0.0", "commander": "^5.0.0", - "compare-versions": "^3.6.0", "inquirer": "^7.1.0", "luxon": "^3.4.4", "request": "^2.88.2",