@zuplo/cli 1.72.0 → 1.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +12 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="19cb753a-00b0-5219-b465-ac77d486084b")}catch(e){}}();
|
|
3
3
|
import * as dotenv from "dotenv";
|
|
4
4
|
dotenv.config();
|
|
5
5
|
import * as Sentry from "@sentry/node";
|
|
@@ -23,7 +23,7 @@ import variable from "./cmds/variable/index.js";
|
|
|
23
23
|
import { shutdownAnalytics } from "./common/analytics/lib.js";
|
|
24
24
|
import { MAX_WAIT_PENDING_TIME_MS, SENTRY_DSN } from "./common/constants.js";
|
|
25
25
|
import { logger } from "./common/logger.js";
|
|
26
|
-
import { printCriticalFailureToConsoleAndExit } from "./common/output.js";
|
|
26
|
+
import { printCriticalFailureToConsoleAndExit, printDiagnosticsToConsole, } from "./common/output.js";
|
|
27
27
|
const MIN_NODE_VERSION = "18.0.0";
|
|
28
28
|
if (gte(process.versions.node, MIN_NODE_VERSION)) {
|
|
29
29
|
let packageJson;
|
|
@@ -55,6 +55,15 @@ if (gte(process.versions.node, MIN_NODE_VERSION)) {
|
|
|
55
55
|
.demandCommand()
|
|
56
56
|
.strictCommands()
|
|
57
57
|
.version(packageJson?.version)
|
|
58
|
+
.fail(async (msg, err, yargs) => {
|
|
59
|
+
if (err) {
|
|
60
|
+
Sentry.captureException(err);
|
|
61
|
+
}
|
|
62
|
+
if (msg) {
|
|
63
|
+
printDiagnosticsToConsole(msg);
|
|
64
|
+
}
|
|
65
|
+
printCriticalFailureToConsoleAndExit(await yargs.help());
|
|
66
|
+
})
|
|
58
67
|
.help().argv;
|
|
59
68
|
await shutdownAnalytics();
|
|
60
69
|
void Sentry.close(MAX_WAIT_PENDING_TIME_MS).then(() => {
|
|
@@ -67,4 +76,4 @@ else {
|
|
|
67
76
|
Consider using a Node.js version manager such as https://github.com/nvm-sh/nvm.`);
|
|
68
77
|
}
|
|
69
78
|
//# sourceMappingURL=cli.js.map
|
|
70
|
-
//# debugId=
|
|
79
|
+
//# debugId=19cb753a-00b0-5219-b465-ac77d486084b
|