@@ -40,7 +40,6 @@ const config: CodegenConfig = {
4040 { add : { content : 'declare namespace GraphQL {' } } ,
4141 { add : { placement : 'append' , content : '}' } } ,
4242 'typescript' ,
43- 'typescript-operations' ,
4443 ] ,
4544 } ,
4645 './dev-test/test-schema/env.types.ts' : { schema : process . env . SCHEMA_PATH , plugins : [ 'typescript' ] } ,
@@ -65,81 +64,81 @@ const config: CodegenConfig = {
6564 './dev-test/githunt/typed-document-nodes.ts' : {
6665 schema : './dev-test/githunt/schema.json' ,
6766 documents : './dev-test/githunt/**/*.graphql' ,
68- plugins : [ 'typescript' , 'typescript -operations', 'typed-document-node' ] ,
67+ plugins : [ 'typescript-operations' , 'typed-document-node' ] ,
6968 } ,
7069 './dev-test/githunt/types.ts' : {
7170 schema : './dev-test/githunt/schema.json' ,
7271 documents : './dev-test/githunt/**/*.graphql' ,
73- plugins : [ 'typescript' , 'typescript -operations'] ,
72+ plugins : [ 'typescript-operations' ] ,
7473 } ,
7574 './dev-test/githunt/types.preResolveTypes.ts' : {
7675 schema : './dev-test/githunt/schema.json' ,
7776 documents : './dev-test/githunt/**/*.graphql' ,
7877 config : { preResolveTypes : true } ,
79- plugins : [ 'typescript' , 'typescript -operations'] ,
78+ plugins : [ 'typescript-operations' ] ,
8079 } ,
8180 './dev-test/githunt/types.onlyEnums.ts' : {
8281 schema : './dev-test/githunt/schema.json' ,
8382 documents : './dev-test/githunt/**/*.graphql' ,
84- config : { onlyEnums : true } ,
85- plugins : [ 'typescript' ] ,
83+ config : { generatesOperationTypes : false } ,
84+ plugins : [ 'typescript-operations ' ] ,
8685 } ,
8786 './dev-test/githunt/types.preResolveTypes.onlyOperationTypes.ts' : {
8887 schema : './dev-test/githunt/schema.json' ,
8988 documents : './dev-test/githunt/**/*.graphql' ,
90- config : { preResolveTypes : true , onlyOperationTypes : true } ,
91- plugins : [ 'typescript' , 'typescript -operations'] ,
89+ config : { preResolveTypes : true } ,
90+ plugins : [ 'typescript-operations' ] ,
9291 } ,
9392 './dev-test/githunt/types.flatten.preResolveTypes.ts' : {
9493 schema : './dev-test/githunt/schema.json' ,
9594 documents : './dev-test/githunt/**/*.graphql' ,
9695 config : { preResolveTypes : true , flattenGeneratedTypes : true } ,
97- plugins : [ 'typescript' , 'typescript -operations'] ,
96+ plugins : [ 'typescript-operations' ] ,
9897 } ,
9998 './dev-test/githunt/types.enumsAsTypes.ts' : {
10099 schema : './dev-test/githunt/schema.json' ,
101100 documents : './dev-test/githunt/**/*.graphql' ,
102- config : { enumsAsTypes : true } ,
103- plugins : [ 'typescript' , 'typescript -operations'] ,
101+ config : { enumType : 'string-literal' } ,
102+ plugins : [ 'typescript-operations' ] ,
104103 } ,
105104 './dev-test/githunt/types.d.ts' : {
106105 schema : './dev-test/githunt/schema.json' ,
107106 documents : './dev-test/githunt/**/*.graphql' ,
108- config : { enumsAsTypes : true } ,
109- plugins : [ 'typescript' , 'typescript -operations'] ,
107+ config : { } ,
108+ plugins : [ 'typescript-operations' ] ,
110109 } ,
111110 './dev-test/githunt/types.avoidOptionals.ts' : {
112111 schema : './dev-test/githunt/schema.json' ,
113112 documents : './dev-test/githunt/**/*.graphql' ,
114113 config : { avoidOptionals : true } ,
115- plugins : [ 'typescript' , 'typescript -operations'] ,
114+ plugins : [ 'typescript-operations' ] ,
116115 } ,
117116 './dev-test/githunt/types.immutableTypes.ts' : {
118117 schema : './dev-test/githunt/schema.json' ,
119118 documents : './dev-test/githunt/**/*.graphql' ,
120119 config : { immutableTypes : true } ,
121- plugins : [ 'typescript' , 'typescript -operations'] ,
120+ plugins : [ 'typescript-operations' ] ,
122121 } ,
123122 './dev-test/star-wars/types.ts' : {
124123 schema : './dev-test/star-wars/schema.json' ,
125124 documents : './dev-test/star-wars/**/*.graphql' ,
126- plugins : [ 'typescript' , 'typescript -operations'] ,
125+ plugins : [ 'typescript-operations' ] ,
127126 } ,
128127 './dev-test/star-wars/types.excludeQueryAlpha.ts' : {
129128 schema : './dev-test/star-wars/schema.json' ,
130129 documents : [ './dev-test/star-wars/**/*.graphql' , '!./dev-test/star-wars/**/ExcludeQueryAlpha.graphql' ] ,
131- plugins : [ 'typescript' , 'typescript -operations'] ,
130+ plugins : [ 'typescript-operations' ] ,
132131 } ,
133132 './dev-test/star-wars/types.excludeQueryBeta.ts' : {
134133 schema : './dev-test/star-wars/schema.json' ,
135134 documents : [ './dev-test/star-wars/**/*.graphql' , '!./dev-test/star-wars/**/ExcludeQueryBeta.graphql' ] ,
136- plugins : [ 'typescript' , 'typescript -operations'] ,
135+ plugins : [ 'typescript-operations' ] ,
137136 } ,
138137 './dev-test/star-wars/types.preResolveTypes.ts' : {
139138 schema : './dev-test/star-wars/schema.json' ,
140139 documents : './dev-test/star-wars/**/*.graphql' ,
141140 config : { preResolveTypes : true } ,
142- plugins : [ 'typescript' , 'typescript -operations'] ,
141+ plugins : [ 'typescript-operations' ] ,
143142 } ,
144143 './dev-test/star-wars/types.OnlyEnums.ts' : {
145144 schema : './dev-test/star-wars/schema.json' ,
@@ -150,25 +149,25 @@ const config: CodegenConfig = {
150149 './dev-test/star-wars/types.preResolveTypes.onlyOperationTypes.ts' : {
151150 schema : './dev-test/star-wars/schema.json' ,
152151 documents : './dev-test/star-wars/**/*.graphql' ,
153- config : { preResolveTypes : true , onlyOperationTypes : true } ,
154- plugins : [ 'typescript' , 'typescript -operations'] ,
152+ config : { preResolveTypes : true } ,
153+ plugins : [ 'typescript-operations' ] ,
155154 } ,
156155 './dev-test/test-schema/types.preResolveTypes.ts' : {
157156 schema : './dev-test/test-schema/schema.graphql' ,
158157 documents : [ 'query test { testArr1 testArr2 testArr3 }' ] ,
159158 config : { preResolveTypes : true } ,
160- plugins : [ 'typescript' , 'typescript -operations'] ,
159+ plugins : [ 'typescript-operations' ] ,
161160 } ,
162161 './dev-test/test-schema/types.preResolveTypes.onlyOperationTypes.ts' : {
163162 schema : './dev-test/test-schema/schema.graphql' ,
164163 documents : [ 'query test { testArr1 testArr2 testArr3 }' ] ,
165- config : { preResolveTypes : true , onlyOperationTypes : true } ,
166- plugins : [ 'typescript' , 'typescript -operations'] ,
164+ config : { preResolveTypes : true } ,
165+ plugins : [ 'typescript-operations' ] ,
167166 } ,
168167 './dev-test/star-wars/types.d.ts' : {
169168 schema : './dev-test/star-wars/schema.json' ,
170- config : { enumsAsTypes : true } ,
171- plugins : [ 'typescript' , 'typescript -operations'] ,
169+ config : { enumType : 'string-literal' } ,
170+ plugins : [ 'typescript-operations' ] ,
172171 } ,
173172 './dev-test/modules/' : {
174173 schema : './dev-test/modules/*/types/*.graphql' ,
@@ -179,25 +178,25 @@ const config: CodegenConfig = {
179178 './dev-test/star-wars/types.globallyAvailable.d.ts' : {
180179 schema : './dev-test/star-wars/schema.json' ,
181180 documents : './dev-test/star-wars/**/*.graphql' ,
182- config : { enumsAsTypes : true , noExport : true } ,
183- plugins : [ 'typescript' , 'typescript -operations'] ,
181+ config : { noExport : true } ,
182+ plugins : [ 'typescript-operations' ] ,
184183 } ,
185184 './dev-test/star-wars/types.avoidOptionals.ts' : {
186185 schema : './dev-test/star-wars/schema.json' ,
187186 documents : './dev-test/star-wars/**/*.graphql' ,
188187 config : { avoidOptionals : true } ,
189- plugins : [ 'typescript' , 'typescript -operations'] ,
188+ plugins : [ 'typescript-operations' ] ,
190189 } ,
191190 './dev-test/star-wars/types.immutableTypes.ts' : {
192191 schema : './dev-test/star-wars/schema.json' ,
193192 documents : './dev-test/star-wars/**/*.graphql' ,
194193 config : { immutableTypes : true } ,
195- plugins : [ 'typescript' , 'typescript -operations'] ,
194+ plugins : [ 'typescript-operations' ] ,
196195 } ,
197196 './dev-test/star-wars/types.skipSchema.ts' : {
198197 schema : './dev-test/star-wars/schema.json' ,
199198 documents : './dev-test/star-wars/**/*.graphql' ,
200- plugins : [ 'typescript' , 'typescript -operations'] ,
199+ plugins : [ 'typescript-operations' ] ,
201200 } ,
202201 './dev-test/gql-tag-operations/gql/' : {
203202 schema : './dev-test/gql-tag-operations/schema.graphql' ,
@@ -224,7 +223,7 @@ const config: CodegenConfig = {
224223 './dev-test/test-null-value/result.d.ts' : {
225224 schema : './dev-test/test-null-value/schema.graphql' ,
226225 documents : [ './dev-test/test-null-value/query.ts' ] ,
227- plugins : [ 'typescript' , 'typescript -operations'] ,
226+ plugins : [ 'typescript-operations' ] ,
228227 config : {
229228 // The combination of these two flags caused the following issue:
230229 // https://github.com/dotansimha/graphql-code-generator/pull/9709
0 commit comments