@cedarjs/cli 7.0.0-canary.3079 → 7.0.0-canary.3082
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.
|
@@ -3,7 +3,12 @@ import path from "node:path";
|
|
|
3
3
|
import execa from "execa";
|
|
4
4
|
import { Listr } from "listr2";
|
|
5
5
|
import prompts from "prompts";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
colors,
|
|
8
|
+
getPaths,
|
|
9
|
+
installPackages,
|
|
10
|
+
requireTTYOrExit
|
|
11
|
+
} from "@cedarjs/cli-helpers";
|
|
7
12
|
import { prettyPrintCedarCommand } from "@cedarjs/cli-helpers/packageManager";
|
|
8
13
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
9
14
|
import {
|
|
@@ -54,14 +59,7 @@ async function handler({ force, migrations, verbose }) {
|
|
|
54
59
|
}
|
|
55
60
|
let runMigrations = migrations;
|
|
56
61
|
if (!skipProvisioning && runMigrations === void 0) {
|
|
57
|
-
|
|
58
|
-
const error = new Error(
|
|
59
|
-
"Cannot prompt for confirmation in a non-interactive terminal. Please pass --migrations or --no-migrations explicitly."
|
|
60
|
-
);
|
|
61
|
-
errorTelemetry(process.argv, error.message);
|
|
62
|
-
console.error(colors.error(error.message));
|
|
63
|
-
process.exit(1);
|
|
64
|
-
}
|
|
62
|
+
requireTTYOrExit("--migrations or --no-migrations");
|
|
65
63
|
const response = await prompts({
|
|
66
64
|
type: "toggle",
|
|
67
65
|
name: "runMigrations",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "7.0.0-canary.
|
|
3
|
+
"version": "7.0.0-canary.3082",
|
|
4
4
|
"description": "The CedarJS Command Line",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"@babel/preset-typescript": "7.29.7",
|
|
37
37
|
"@babel/traverse": "7.29.8",
|
|
38
38
|
"@babel/types": "7.29.8",
|
|
39
|
-
"@cedarjs/api-server": "7.0.0-canary.
|
|
40
|
-
"@cedarjs/babel-config": "7.0.0-canary.
|
|
41
|
-
"@cedarjs/cli-helpers": "7.0.0-canary.
|
|
42
|
-
"@cedarjs/internal": "7.0.0-canary.
|
|
43
|
-
"@cedarjs/prerender": "7.0.0-canary.
|
|
44
|
-
"@cedarjs/project-config": "7.0.0-canary.
|
|
45
|
-
"@cedarjs/structure": "7.0.0-canary.
|
|
46
|
-
"@cedarjs/telemetry": "7.0.0-canary.
|
|
47
|
-
"@cedarjs/utils": "7.0.0-canary.
|
|
48
|
-
"@cedarjs/vite": "7.0.0-canary.
|
|
49
|
-
"@cedarjs/web-server": "7.0.0-canary.
|
|
39
|
+
"@cedarjs/api-server": "7.0.0-canary.3082",
|
|
40
|
+
"@cedarjs/babel-config": "7.0.0-canary.3082",
|
|
41
|
+
"@cedarjs/cli-helpers": "7.0.0-canary.3082",
|
|
42
|
+
"@cedarjs/internal": "7.0.0-canary.3082",
|
|
43
|
+
"@cedarjs/prerender": "7.0.0-canary.3082",
|
|
44
|
+
"@cedarjs/project-config": "7.0.0-canary.3082",
|
|
45
|
+
"@cedarjs/structure": "7.0.0-canary.3082",
|
|
46
|
+
"@cedarjs/telemetry": "7.0.0-canary.3082",
|
|
47
|
+
"@cedarjs/utils": "7.0.0-canary.3082",
|
|
48
|
+
"@cedarjs/vite": "7.0.0-canary.3082",
|
|
49
|
+
"@cedarjs/web-server": "7.0.0-canary.3082",
|
|
50
50
|
"@listr2/prompt-adapter-enquirer": "4.3.1",
|
|
51
51
|
"@opentelemetry/api": "1.9.1",
|
|
52
52
|
"@opentelemetry/core": "1.30.1",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"yargs": "17.7.3"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@cedarjs/framework-tools": "7.0.0-canary.
|
|
97
|
+
"@cedarjs/framework-tools": "7.0.0-canary.3082",
|
|
98
98
|
"@prisma/dmmf": "7.10.0",
|
|
99
99
|
"@types/archiver": "^7.0.0",
|
|
100
100
|
"memfs": "4.68.2",
|