@cedarjs/cli 4.0.0-canary.13790 → 4.0.0-canary.13798
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.
|
@@ -143,7 +143,7 @@ Run ` + c.info(formatCedarCommand(["build"])) + " (without specifying a workspac
|
|
|
143
143
|
title: gqlFeaturesTaskTitle,
|
|
144
144
|
task: generate
|
|
145
145
|
},
|
|
146
|
-
workspace.includes("web") && {
|
|
146
|
+
workspace.includes("web") && cedarConfig.experimental?.gqlorm?.enabled && {
|
|
147
147
|
title: "Generating gqlorm schema...",
|
|
148
148
|
task: async () => {
|
|
149
149
|
const { errors } = await generateGqlormArtifacts();
|
|
@@ -112,7 +112,7 @@ const handler = async ({
|
|
|
112
112
|
);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
if (generate && workspace.includes("web")) {
|
|
115
|
+
if (generate && workspace.includes("web") && getConfig().experimental?.gqlorm?.enabled) {
|
|
116
116
|
try {
|
|
117
117
|
await generateGqlormArtifacts();
|
|
118
118
|
} catch (e) {
|
|
@@ -166,7 +166,7 @@ const handler = async ({
|
|
|
166
166
|
if (generate) {
|
|
167
167
|
jobs.push({
|
|
168
168
|
name: "gen",
|
|
169
|
-
command: "yarn
|
|
169
|
+
command: "yarn cedar-gen-watch",
|
|
170
170
|
prefixColor: "green"
|
|
171
171
|
});
|
|
172
172
|
}
|
|
@@ -109,9 +109,9 @@ const handler = async (args) => {
|
|
|
109
109
|
title: "Generating TypeScript definitions and GraphQL schemas ...",
|
|
110
110
|
task: () => {
|
|
111
111
|
addFunctionToRollback(async () => {
|
|
112
|
-
await execa("yarn", ["
|
|
112
|
+
await execa("yarn", ["cedar-gen"], { stdio: "pipe" });
|
|
113
113
|
}, true);
|
|
114
|
-
return execa("yarn", ["
|
|
114
|
+
return execa("yarn", ["cedar-gen"], { stdio: "inherit" });
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
{
|
|
@@ -32,7 +32,7 @@ const getExitCode = (error) => {
|
|
|
32
32
|
const builder = (yargs) => yargs.command("types", "Generate supplementary code", {}, () => {
|
|
33
33
|
recordTelemetryAttributes({ command: "generate types" });
|
|
34
34
|
try {
|
|
35
|
-
execa.sync("yarn", ["
|
|
35
|
+
execa.sync("yarn", ["cedar-gen"], { stdio: "inherit" });
|
|
36
36
|
} catch (error) {
|
|
37
37
|
process.exitCode = getExitCode(error) ?? 1;
|
|
38
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.13798+50f726e607",
|
|
4
4
|
"description": "The CedarJS Command Line",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/parser": "7.29.2",
|
|
35
35
|
"@babel/preset-typescript": "7.28.5",
|
|
36
|
-
"@cedarjs/api-server": "4.0.0-canary.
|
|
37
|
-
"@cedarjs/cli-helpers": "4.0.0-canary.
|
|
38
|
-
"@cedarjs/fastify-web": "4.0.0-canary.
|
|
39
|
-
"@cedarjs/internal": "4.0.0-canary.
|
|
40
|
-
"@cedarjs/prerender": "4.0.0-canary.
|
|
41
|
-
"@cedarjs/project-config": "4.0.0-canary.
|
|
42
|
-
"@cedarjs/structure": "4.0.0-canary.
|
|
43
|
-
"@cedarjs/telemetry": "4.0.0-canary.
|
|
44
|
-
"@cedarjs/utils": "4.0.0-canary.
|
|
45
|
-
"@cedarjs/web-server": "4.0.0-canary.
|
|
36
|
+
"@cedarjs/api-server": "4.0.0-canary.13798",
|
|
37
|
+
"@cedarjs/cli-helpers": "4.0.0-canary.13798",
|
|
38
|
+
"@cedarjs/fastify-web": "4.0.0-canary.13798",
|
|
39
|
+
"@cedarjs/internal": "4.0.0-canary.13798",
|
|
40
|
+
"@cedarjs/prerender": "4.0.0-canary.13798",
|
|
41
|
+
"@cedarjs/project-config": "4.0.0-canary.13798",
|
|
42
|
+
"@cedarjs/structure": "4.0.0-canary.13798",
|
|
43
|
+
"@cedarjs/telemetry": "4.0.0-canary.13798",
|
|
44
|
+
"@cedarjs/utils": "4.0.0-canary.13798",
|
|
45
|
+
"@cedarjs/web-server": "4.0.0-canary.13798",
|
|
46
46
|
"@listr2/prompt-adapter-enquirer": "4.2.1",
|
|
47
47
|
"@opentelemetry/api": "1.9.0",
|
|
48
48
|
"@opentelemetry/core": "1.30.1",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"publishConfig": {
|
|
109
109
|
"access": "public"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "50f726e607a65475e6a5e4e3e0604e2e8f602fd0"
|
|
112
112
|
}
|