@cedarjs/cli 1.0.0-canary.12646 → 1.0.0-canary.12651
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,7 +1,7 @@
|
|
|
1
1
|
import execa from "execa";
|
|
2
2
|
import { getPaths } from "@cedarjs/project-config";
|
|
3
3
|
import c from "../../../lib/colors.js";
|
|
4
|
-
const deployHandler =
|
|
4
|
+
const deployHandler = ({ build, prisma, dm: dataMigrate }) => {
|
|
5
5
|
const paths = getPaths();
|
|
6
6
|
let commandSet = [];
|
|
7
7
|
if (build) {
|
|
@@ -14,9 +14,7 @@ const deployHandler = async ({ build, prisma, dm: dataMigrate }) => {
|
|
|
14
14
|
commandSet.push("yarn rw data-migrate up");
|
|
15
15
|
}
|
|
16
16
|
const joinedCommands = commandSet.join(" && ");
|
|
17
|
-
console.log(c.note(
|
|
18
|
-
Running:
|
|
19
|
-
`) + `${joinedCommands}
|
|
17
|
+
console.log(c.note("\nRunning:\n") + `${joinedCommands}
|
|
20
18
|
`);
|
|
21
19
|
return execa(joinedCommands, {
|
|
22
20
|
shell: true,
|
|
@@ -10,8 +10,8 @@ async function handler(yargs) {
|
|
|
10
10
|
prisma: yargs.prisma,
|
|
11
11
|
dataMigrate: yargs.dataMigrate
|
|
12
12
|
});
|
|
13
|
-
const {
|
|
14
|
-
return
|
|
13
|
+
const { deployHandler } = await import("./helpers/deployHandler.js");
|
|
14
|
+
return deployHandler(yargs);
|
|
15
15
|
}
|
|
16
16
|
export {
|
|
17
17
|
builder,
|
|
@@ -10,8 +10,8 @@ async function handler(yargs) {
|
|
|
10
10
|
prisma: yargs.prisma,
|
|
11
11
|
dataMigrate: yargs.dataMigrate
|
|
12
12
|
});
|
|
13
|
-
const {
|
|
14
|
-
return
|
|
13
|
+
const { deployHandler } = await import("./helpers/deployHandler.js");
|
|
14
|
+
return deployHandler(yargs);
|
|
15
15
|
}
|
|
16
16
|
export {
|
|
17
17
|
builder,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "1.0.0-canary.
|
|
3
|
+
"version": "1.0.0-canary.12651+5b33608d4",
|
|
4
4
|
"description": "The CedarJS Command Line",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/preset-typescript": "7.27.1",
|
|
34
34
|
"@babel/runtime-corejs3": "7.27.6",
|
|
35
|
-
"@cedarjs/api-server": "1.0.0-canary.
|
|
36
|
-
"@cedarjs/cli-helpers": "1.0.0-canary.
|
|
37
|
-
"@cedarjs/fastify-web": "1.0.0-canary.
|
|
38
|
-
"@cedarjs/internal": "1.0.0-canary.
|
|
39
|
-
"@cedarjs/prerender": "1.0.0-canary.
|
|
40
|
-
"@cedarjs/project-config": "1.0.0-canary.
|
|
41
|
-
"@cedarjs/structure": "1.0.0-canary.
|
|
42
|
-
"@cedarjs/telemetry": "1.0.0-canary.
|
|
43
|
-
"@cedarjs/web-server": "1.0.0-canary.
|
|
35
|
+
"@cedarjs/api-server": "1.0.0-canary.12651",
|
|
36
|
+
"@cedarjs/cli-helpers": "1.0.0-canary.12651",
|
|
37
|
+
"@cedarjs/fastify-web": "1.0.0-canary.12651",
|
|
38
|
+
"@cedarjs/internal": "1.0.0-canary.12651",
|
|
39
|
+
"@cedarjs/prerender": "1.0.0-canary.12651",
|
|
40
|
+
"@cedarjs/project-config": "1.0.0-canary.12651",
|
|
41
|
+
"@cedarjs/structure": "1.0.0-canary.12651",
|
|
42
|
+
"@cedarjs/telemetry": "1.0.0-canary.12651",
|
|
43
|
+
"@cedarjs/web-server": "1.0.0-canary.12651",
|
|
44
44
|
"@listr2/prompt-adapter-enquirer": "2.0.16",
|
|
45
45
|
"@opentelemetry/api": "1.8.0",
|
|
46
46
|
"@opentelemetry/core": "1.22.0",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"publishConfig": {
|
|
103
103
|
"access": "public"
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "5b33608d48fd4bae4f0483fefbbbf4fac5f80635"
|
|
106
106
|
}
|