@zuplo/cli
Advanced tools
Comparing version 1.13.0 to 1.14.0
import * as dotenv from "dotenv"; | ||
dotenv.config(); | ||
import { gte } from "semver"; | ||
import { hideBin } from "yargs/helpers"; | ||
@@ -7,10 +8,19 @@ import yargs from "yargs/yargs"; | ||
import test from "./cmds/test.js"; | ||
void yargs(hideBin(process.argv)) | ||
.env("ZUPLO") | ||
.version(false) | ||
.command(deploy) | ||
.command(test) | ||
.demandCommand() | ||
.strictCommands() | ||
.help().argv; | ||
import { printCriticalFailureToConsoleAndExit } from "./common/output.js"; | ||
const MIN_NODE_VERSION = "18.0.0"; | ||
if (gte(process.versions.node, MIN_NODE_VERSION)) { | ||
void yargs(hideBin(process.argv)) | ||
.env("ZUPLO") | ||
.version(false) | ||
.command(deploy) | ||
.command(test) | ||
.demandCommand() | ||
.strictCommands() | ||
.help().argv; | ||
} | ||
else { | ||
printCriticalFailureToConsoleAndExit(`The zup CLI requires at least node.js v${MIN_NODE_VERSION}. You are using v${process.versions.node}. Please update your version of node.js. | ||
Consider using a Node.js version manager such as https://github.com/nvm-sh/nvm.`); | ||
} | ||
//# sourceMappingURL=cli.js.map |
{ | ||
"name": "@zuplo/cli", | ||
"version": "1.13.0", | ||
"version": "1.14.0", | ||
"type": "module", | ||
@@ -28,2 +28,3 @@ "repository": "https://github.com/zuplo/cli", | ||
"@types/rimraf": "^3.0.2", | ||
"@types/semver": "^7.3.13", | ||
"@types/tar": "^6.1.3", | ||
@@ -56,2 +57,3 @@ "@types/temp": "^0.9.1", | ||
"rimraf": "^3.0.2", | ||
"semver": "^7.3.8", | ||
"simple-git": "^3.14.1", | ||
@@ -58,0 +60,0 @@ "tar": "^6.1.11", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25755
675
15
18
325
243
+ Addedsemver@^7.3.8
+ Addeddotenv@16.4.5(transitive)
+ Addedsemver@7.6.3(transitive)
- Removeddotenv@16.4.6(transitive)