@cedarjs/internal 6.0.0-canary.2946 → 6.0.0-canary.2948
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,12 +1,5 @@
|
|
|
1
1
|
export declare const shouldGenerateTrustedDocuments: () => boolean;
|
|
2
2
|
export declare const generateClientPreset: () => Promise<{
|
|
3
|
-
clientPresetFiles: string[];
|
|
4
|
-
trustedDocumentsStoreFile: never[];
|
|
5
|
-
errors: {
|
|
6
|
-
message: string;
|
|
7
|
-
error: unknown;
|
|
8
|
-
}[];
|
|
9
|
-
} | {
|
|
10
3
|
clientPresetFiles: string[];
|
|
11
4
|
trustedDocumentsStoreFile: string;
|
|
12
5
|
errors: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientPreset.d.ts","sourceRoot":"","sources":["../../src/generate/clientPreset.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,8BAA8B,QAAO,OAIjD,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;iBAGN,MAAM;eAAS,OAAO
|
|
1
|
+
{"version":3,"file":"clientPreset.d.ts","sourceRoot":"","sources":["../../src/generate/clientPreset.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,8BAA8B,QAAO,OAIjD,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;iBAGN,MAAM;eAAS,OAAO;;EAiEhD,CAAA"}
|
|
@@ -14,7 +14,7 @@ const generateClientPreset = async () => {
|
|
|
14
14
|
let clientPresetFiles = [];
|
|
15
15
|
const errors = [];
|
|
16
16
|
if (!shouldGenerateTrustedDocuments()) {
|
|
17
|
-
return { clientPresetFiles, trustedDocumentsStoreFile:
|
|
17
|
+
return { clientPresetFiles, trustedDocumentsStoreFile: "", errors };
|
|
18
18
|
}
|
|
19
19
|
const documentsGlob = "./web/src/**/!(*.d).{ts,tsx,js,jsx}";
|
|
20
20
|
const config = {
|
|
@@ -58,7 +58,7 @@ const generateClientPreset = async () => {
|
|
|
58
58
|
});
|
|
59
59
|
return {
|
|
60
60
|
clientPresetFiles,
|
|
61
|
-
trustedDocumentsStoreFile:
|
|
61
|
+
trustedDocumentsStoreFile: "",
|
|
62
62
|
errors
|
|
63
63
|
};
|
|
64
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/generate/generate.ts"],"names":[],"mappings":";AAWA,eAAO,MAAM,QAAQ;;;;;;
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/generate/generate.ts"],"names":[],"mappings":";AAWA,eAAO,MAAM,QAAQ;;;;;;EAmDpB,CAAA;AAED,eAAO,MAAM,GAAG,qBAoCf,CAAA"}
|
|
@@ -11,11 +11,16 @@ const generate = async () => {
|
|
|
11
11
|
const { schemaPath, errors: generateGraphQLSchemaErrors } = await generateGraphQLSchema();
|
|
12
12
|
const { typeDefFiles, errors: generateTypeDefsErrors } = await generateTypeDefs();
|
|
13
13
|
const clientPresetFiles = [];
|
|
14
|
+
const clientPresetErrors = [];
|
|
14
15
|
const { possibleTypesFiles, errors: generatePossibleTypesErrors } = await generatePossibleTypes();
|
|
15
16
|
const { files: gqlormFiles, errors: gqlormErrors } = await generateGqlormArtifacts();
|
|
16
17
|
if (config.graphql.trustedDocuments) {
|
|
17
18
|
const preset = await generateClientPreset();
|
|
18
19
|
clientPresetFiles.push(...preset.clientPresetFiles);
|
|
20
|
+
if (preset.trustedDocumentsStoreFile) {
|
|
21
|
+
clientPresetFiles.push(preset.trustedDocumentsStoreFile);
|
|
22
|
+
}
|
|
23
|
+
clientPresetErrors.push(...preset.errors);
|
|
19
24
|
}
|
|
20
25
|
let files = [];
|
|
21
26
|
if (schemaPath !== "") {
|
|
@@ -34,6 +39,7 @@ const generate = async () => {
|
|
|
34
39
|
...generateGraphQLSchemaErrors,
|
|
35
40
|
...generateTypeDefsErrors,
|
|
36
41
|
...generatePossibleTypesErrors,
|
|
42
|
+
...clientPresetErrors,
|
|
37
43
|
...gqlormErrors
|
|
38
44
|
]
|
|
39
45
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/internal",
|
|
3
|
-
"version": "6.0.0-canary.
|
|
3
|
+
"version": "6.0.0-canary.2948",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -121,14 +121,14 @@
|
|
|
121
121
|
"@babel/parser": "7.29.7",
|
|
122
122
|
"@babel/plugin-transform-typescript": "^7.26.8",
|
|
123
123
|
"@babel/traverse": "7.29.7",
|
|
124
|
-
"@cedarjs/api": "6.0.0-canary.
|
|
125
|
-
"@cedarjs/babel-config": "6.0.0-canary.
|
|
126
|
-
"@cedarjs/cli-helpers": "6.0.0-canary.
|
|
127
|
-
"@cedarjs/graphql-server": "6.0.0-canary.
|
|
128
|
-
"@cedarjs/project-config": "6.0.0-canary.
|
|
129
|
-
"@cedarjs/router": "6.0.0-canary.
|
|
130
|
-
"@cedarjs/structure": "6.0.0-canary.
|
|
131
|
-
"@cedarjs/utils": "6.0.0-canary.
|
|
124
|
+
"@cedarjs/api": "6.0.0-canary.2948",
|
|
125
|
+
"@cedarjs/babel-config": "6.0.0-canary.2948",
|
|
126
|
+
"@cedarjs/cli-helpers": "6.0.0-canary.2948",
|
|
127
|
+
"@cedarjs/graphql-server": "6.0.0-canary.2948",
|
|
128
|
+
"@cedarjs/project-config": "6.0.0-canary.2948",
|
|
129
|
+
"@cedarjs/router": "6.0.0-canary.2948",
|
|
130
|
+
"@cedarjs/structure": "6.0.0-canary.2948",
|
|
131
|
+
"@cedarjs/utils": "6.0.0-canary.2948",
|
|
132
132
|
"@graphql-codegen/add": "6.0.1",
|
|
133
133
|
"@graphql-codegen/cli": "6.3.1",
|
|
134
134
|
"@graphql-codegen/client-preset": "5.3.0",
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"vite-tsconfig-paths": "^6.1.1"
|
|
167
167
|
},
|
|
168
168
|
"devDependencies": {
|
|
169
|
-
"@cedarjs/framework-tools": "6.0.0-canary.
|
|
169
|
+
"@cedarjs/framework-tools": "6.0.0-canary.2948",
|
|
170
170
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
171
171
|
"@oxc-project/types": "^0.144.0",
|
|
172
172
|
"concurrently": "9.2.4",
|