@eddeee888/gcg-typescript-resolver-files 0.18.1 → 0.18.2
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.
- package/dist/defineConfig.d.ts +1 -1
- package/dist/defineConfig.js +8 -0
- package/package.json +2 -2
package/dist/defineConfig.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export declare const defineConfig: (presetConfig?: TypedPresetConfig, context?:
|
|
|
4
4
|
baseOutputDir?: string;
|
|
5
5
|
schema?: Types.ConfiguredOutput["schema"];
|
|
6
6
|
hooks?: Types.ConfiguredOutput["hooks"];
|
|
7
|
-
}) => Pick<Types.ConfiguredOutput, "preset" | "presetConfig" | "watchPattern" | "schema" | "hooks">;
|
|
7
|
+
}) => Pick<Types.ConfiguredOutput, "preset" | "presetConfig" | "watchPattern" | "schema" | "hooks" | "overwrite">;
|
package/dist/defineConfig.js
CHANGED
|
@@ -12,5 +12,13 @@ export const defineConfig = (presetConfig = {}, context = {}) => {
|
|
|
12
12
|
watchPattern,
|
|
13
13
|
schema,
|
|
14
14
|
hooks,
|
|
15
|
+
overwrite: {
|
|
16
|
+
// Server Preset needs to update existing resolver files
|
|
17
|
+
updateExistingFiles: true,
|
|
18
|
+
// When watching, it's common to avoid sending all files to Codegen to write to fs.
|
|
19
|
+
// When that happens, previously tracked files are marked as stale and gets removed wrongly.
|
|
20
|
+
// Therefore, we don't remove stale files.
|
|
21
|
+
removeStaleFiles: false,
|
|
22
|
+
},
|
|
15
23
|
};
|
|
16
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eddeee888/gcg-typescript-resolver-files",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/eddeee888/graphql-code-generator-plugins.git",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@graphql-codegen/add": "^7.1.0",
|
|
44
|
-
"@graphql-codegen/plugin-helpers": "^7.
|
|
44
|
+
"@graphql-codegen/plugin-helpers": "^7.2.0",
|
|
45
45
|
"@graphql-codegen/schema-ast": "^6.1.0",
|
|
46
46
|
"@graphql-codegen/typescript": "^6.1.0",
|
|
47
47
|
"@graphql-codegen/typescript-resolvers": "^6.1.0",
|