@cedarjs/cli 4.0.0-canary.13777 → 4.0.0-canary.13779

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.
@@ -12,6 +12,7 @@ import {
12
12
  import { runBin } from "@cedarjs/cli-helpers/packageManager/exec";
13
13
  import { buildApi, cleanApiBuild } from "@cedarjs/internal/dist/build/api";
14
14
  import { generate } from "@cedarjs/internal/dist/generate/generate";
15
+ import { generateGqlormArtifacts } from "@cedarjs/internal/dist/generate/gqlormSchema";
15
16
  import { loadAndValidateSdls } from "@cedarjs/internal/dist/validateSchema";
16
17
  import { detectPrerenderRoutes } from "@cedarjs/prerender/detection";
17
18
  import {} from "@cedarjs/project-config";
@@ -142,6 +143,17 @@ Run ` + c.info(formatCedarCommand(["build"])) + " (without specifying a workspac
142
143
  title: gqlFeaturesTaskTitle,
143
144
  task: generate
144
145
  },
146
+ workspace.includes("web") && {
147
+ title: "Generating gqlorm schema...",
148
+ task: async () => {
149
+ const { errors } = await generateGqlormArtifacts();
150
+ if (errors.length > 0) {
151
+ for (const { message } of errors) {
152
+ console.warn(`Warning: ${message}`);
153
+ }
154
+ }
155
+ }
156
+ },
145
157
  workspace.includes("api") && {
146
158
  title: "Verifying graphql schema...",
147
159
  task: loadAndValidateSdls
@@ -4,6 +4,7 @@ import { Writable } from "node:stream";
4
4
  import concurrently from "concurrently";
5
5
  import { recordTelemetryAttributes, colors as c } from "@cedarjs/cli-helpers";
6
6
  import { shutdownPort } from "@cedarjs/internal/dist/dev";
7
+ import { generateGqlormArtifacts } from "@cedarjs/internal/dist/generate/gqlormSchema";
7
8
  import { getConfig, getConfigPath } from "@cedarjs/project-config";
8
9
  import { errorTelemetry } from "@cedarjs/telemetry";
9
10
  import { exitWithError } from "../../lib/exit.js";
@@ -111,6 +112,14 @@ const handler = async ({
111
112
  );
112
113
  }
113
114
  }
115
+ if (generate && workspace.includes("web")) {
116
+ try {
117
+ await generateGqlormArtifacts();
118
+ } catch (e) {
119
+ const message = getErrorMessage(e);
120
+ console.error(c.error(`Error generating gqlorm schema: ${message}`));
121
+ }
122
+ }
114
123
  const cedarConfigPath = getConfigPath();
115
124
  const streamingSsrEnabled = getConfig().experimental?.streamingSsr?.enabled;
116
125
  process.env.VITE_CJS_IGNORE_WARNING = "true";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "4.0.0-canary.13777+876612442",
3
+ "version": "4.0.0-canary.13779+0c5740a9f",
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.13777",
37
- "@cedarjs/cli-helpers": "4.0.0-canary.13777",
38
- "@cedarjs/fastify-web": "4.0.0-canary.13777",
39
- "@cedarjs/internal": "4.0.0-canary.13777",
40
- "@cedarjs/prerender": "4.0.0-canary.13777",
41
- "@cedarjs/project-config": "4.0.0-canary.13777",
42
- "@cedarjs/structure": "4.0.0-canary.13777",
43
- "@cedarjs/telemetry": "4.0.0-canary.13777",
44
- "@cedarjs/utils": "4.0.0-canary.13777",
45
- "@cedarjs/web-server": "4.0.0-canary.13777",
36
+ "@cedarjs/api-server": "4.0.0-canary.13779",
37
+ "@cedarjs/cli-helpers": "4.0.0-canary.13779",
38
+ "@cedarjs/fastify-web": "4.0.0-canary.13779",
39
+ "@cedarjs/internal": "4.0.0-canary.13779",
40
+ "@cedarjs/prerender": "4.0.0-canary.13779",
41
+ "@cedarjs/project-config": "4.0.0-canary.13779",
42
+ "@cedarjs/structure": "4.0.0-canary.13779",
43
+ "@cedarjs/telemetry": "4.0.0-canary.13779",
44
+ "@cedarjs/utils": "4.0.0-canary.13779",
45
+ "@cedarjs/web-server": "4.0.0-canary.13779",
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": "8766124429fdfce7a0bb1daeb8730913528f743b"
111
+ "gitHead": "0c5740a9f02db6aa1583c5d8212702deb910d175"
112
112
  }