File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ const config: CodegenConfig = {
2323 "src/" : {
2424 preset : "near-operation-file" ,
2525 presetConfig : {
26+ // TODO: get this to use a ".ts" extension in the output
2627 baseTypesPath : "~../../graphqlTypes.generated" ,
2728 extension : ".generated.ts" ,
2829 fileName : "fetchGraphQL" ,
@@ -41,7 +42,9 @@ const config: CodegenConfig = {
4142 } ,
4243 hooks : {
4344 afterAllFileWrite : [
45+ // The per-operation files can end up with imports in the middle.
4446 "eslint --fix --rule import-x/first:warn" ,
47+
4548 "prettier --write" ,
4649 ] ,
4750 } ,
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ function getTypeFields(depth: number): string {
2121
2222// TODO: Validate that a depth of 5 is sufficient below.
2323
24+ // TODO: maybe use graphql-query-compress here as well
2425const FRAGMENT = squashWhitespace ( `
2526 fragment TypeFields on __Type {
2627 name
You can’t perform that action at this time.
0 commit comments