@cedarjs/internal 1.0.0-canary.12779 → 1.0.0-canary.12781
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphqlSchema.d.ts","sourceRoot":"","sources":["../../../src/generate/graphqlSchema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphqlSchema.d.ts","sourceRoot":"","sources":["../../../src/generate/graphqlSchema.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,qBAAqB;;;iBA6DP,MAAM;eAAS,OAAO;;EA8EhD,CAAA"}
|
|
@@ -96,7 +96,10 @@ const generateGraphQLSchema = async () => {
|
|
|
96
96
|
if (e instanceof Error) {
|
|
97
97
|
const match = e.message.match(/Unknown type: "(\w+)"/);
|
|
98
98
|
const name = match?.[1];
|
|
99
|
-
const
|
|
99
|
+
const schemaPath = await (0, import_project_config.getSchemaPath)(
|
|
100
|
+
redwoodProjectPaths.api.prismaConfig
|
|
101
|
+
);
|
|
102
|
+
const result = await getSchemaWithPath(schemaPath);
|
|
100
103
|
const schemaPrisma = result.schemas.map(([, content]) => content).join("\n");
|
|
101
104
|
const errorObject = {
|
|
102
105
|
message: `Schema loading failed. ${e.message}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphqlSchema.d.ts","sourceRoot":"","sources":["../../src/generate/graphqlSchema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphqlSchema.d.ts","sourceRoot":"","sources":["../../src/generate/graphqlSchema.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,qBAAqB;;;iBA6DP,MAAM;eAAS,OAAO;;EA8EhD,CAAA"}
|
|
@@ -8,7 +8,12 @@ import ansis from "ansis";
|
|
|
8
8
|
import { print } from "graphql";
|
|
9
9
|
import { terminalLink } from "termi-link";
|
|
10
10
|
import { rootSchema } from "@cedarjs/graphql-server";
|
|
11
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
getPaths,
|
|
13
|
+
getConfig,
|
|
14
|
+
resolveFile,
|
|
15
|
+
getSchemaPath
|
|
16
|
+
} from "@cedarjs/project-config";
|
|
12
17
|
const { getSchemaWithPath } = prismaInternals;
|
|
13
18
|
const generateGraphQLSchema = async () => {
|
|
14
19
|
const redwoodProjectPaths = getPaths();
|
|
@@ -63,7 +68,10 @@ const generateGraphQLSchema = async () => {
|
|
|
63
68
|
if (e instanceof Error) {
|
|
64
69
|
const match = e.message.match(/Unknown type: "(\w+)"/);
|
|
65
70
|
const name = match?.[1];
|
|
66
|
-
const
|
|
71
|
+
const schemaPath = await getSchemaPath(
|
|
72
|
+
redwoodProjectPaths.api.prismaConfig
|
|
73
|
+
);
|
|
74
|
+
const result = await getSchemaWithPath(schemaPath);
|
|
67
75
|
const schemaPrisma = result.schemas.map(([, content]) => content).join("\n");
|
|
68
76
|
const errorObject = {
|
|
69
77
|
message: `Schema loading failed. ${e.message}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/internal",
|
|
3
|
-
"version": "1.0.0-canary.
|
|
3
|
+
"version": "1.0.0-canary.12781+3646d1b08",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -140,10 +140,10 @@
|
|
|
140
140
|
"@babel/plugin-transform-typescript": "^7.26.8",
|
|
141
141
|
"@babel/runtime-corejs3": "7.27.6",
|
|
142
142
|
"@babel/traverse": "7.27.4",
|
|
143
|
-
"@cedarjs/babel-config": "1.0.0-canary.
|
|
144
|
-
"@cedarjs/graphql-server": "1.0.0-canary.
|
|
145
|
-
"@cedarjs/project-config": "1.0.0-canary.
|
|
146
|
-
"@cedarjs/router": "1.0.0-canary.
|
|
143
|
+
"@cedarjs/babel-config": "1.0.0-canary.12781",
|
|
144
|
+
"@cedarjs/graphql-server": "1.0.0-canary.12781",
|
|
145
|
+
"@cedarjs/project-config": "1.0.0-canary.12781",
|
|
146
|
+
"@cedarjs/router": "1.0.0-canary.12781",
|
|
147
147
|
"@graphql-codegen/add": "4.0.1",
|
|
148
148
|
"@graphql-codegen/cli": "3.3.1",
|
|
149
149
|
"@graphql-codegen/client-preset": "4.3.3",
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
},
|
|
177
177
|
"devDependencies": {
|
|
178
178
|
"@arethetypeswrong/cli": "0.18.2",
|
|
179
|
-
"@cedarjs/framework-tools": "1.0.0-canary.
|
|
179
|
+
"@cedarjs/framework-tools": "1.0.0-canary.12781",
|
|
180
180
|
"@types/fs-extra": "11.0.4",
|
|
181
181
|
"concurrently": "8.2.2",
|
|
182
182
|
"graphql-tag": "2.12.6",
|
|
@@ -187,5 +187,5 @@
|
|
|
187
187
|
"publishConfig": {
|
|
188
188
|
"access": "public"
|
|
189
189
|
},
|
|
190
|
-
"gitHead": "
|
|
190
|
+
"gitHead": "3646d1b08789be1ee38792889bc71cf331de1435"
|
|
191
191
|
}
|