@zuplo/cli 2.3.0 → 2.3.1
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.
|
@@ -1,17 +1,17 @@
|
|
|
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]="1c1c6e29-7b10-5f96-810c-08323d6b3c10")}catch(e){}}();
|
|
3
3
|
import { confirm } from "@inquirer/prompts";
|
|
4
4
|
import { printDiagnosticsToConsole, printResultToConsoleAndExitGracefully, } from "../../common/output.js";
|
|
5
5
|
import { PackageJsonUpgrader } from "../../common/upgraders/package-json-upgrader.js";
|
|
6
6
|
import { TSConfigUpgrader } from "../../common/upgraders/tsconfig-upgrader.js";
|
|
7
7
|
import { VsCodeSettingsJsonUpgrader } from "../../common/upgraders/vscode-settings-json-upgrader.js";
|
|
8
8
|
export async function update(argv) {
|
|
9
|
-
let answer =
|
|
10
|
-
if (
|
|
9
|
+
let answer = false;
|
|
10
|
+
if (argv.prompt === true) {
|
|
11
11
|
printDiagnosticsToConsole("This command will make changes to your source code. Please commit your changes to version control before continuing.");
|
|
12
12
|
answer = await confirm({ message: "Continue?", default: true });
|
|
13
13
|
}
|
|
14
|
-
if (answer) {
|
|
14
|
+
if (answer || argv.prompt === false) {
|
|
15
15
|
const u = new PackageJsonUpgrader(argv.dir);
|
|
16
16
|
if ((await u.isApplicable()).ok) {
|
|
17
17
|
printDiagnosticsToConsole("Updating your package.json...");
|
|
@@ -31,4 +31,4 @@ export async function update(argv) {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
//# sourceMappingURL=handler.js.map
|
|
34
|
-
//# debugId=
|
|
34
|
+
//# debugId=1c1c6e29-7b10-5f96-810c-08323d6b3c10
|