@@ -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' : {
@@ -68,87 +67,87 @@ const config: CodegenConfig = {
6867 './dev-test/githunt/typed-document-nodes.ts' : {
6968 schema : './dev-test/githunt/schema.json' ,
7069 documents : './dev-test/githunt/**/*.graphql' ,
71- plugins : [ 'typescript' , 'typescript -operations', 'typed-document-node' ] ,
70+ plugins : [ 'typescript-operations' , 'typed-document-node' ] ,
7271 } ,
7372 './dev-test/githunt/types.ts' : {
7473 schema : './dev-test/githunt/schema.json' ,
7574 documents : './dev-test/githunt/**/*.graphql' ,
76- plugins : [ 'typescript' , 'typescript -operations'] ,
75+ plugins : [ 'typescript-operations' ] ,
7776 } ,
7877 './dev-test/githunt/types.preResolveTypes.ts' : {
7978 schema : './dev-test/githunt/schema.json' ,
8079 documents : './dev-test/githunt/**/*.graphql' ,
8180 config : { preResolveTypes : true } ,
82- plugins : [ 'typescript' , 'typescript -operations'] ,
81+ plugins : [ 'typescript-operations' ] ,
8382 } ,
8483 './dev-test/githunt/types.onlyEnums.ts' : {
8584 schema : './dev-test/githunt/schema.json' ,
8685 documents : './dev-test/githunt/**/*.graphql' ,
87- config : { onlyEnums : true } ,
88- plugins : [ 'typescript' ] ,
86+ config : { generatesOperationTypes : false } ,
87+ plugins : [ 'typescript-operations ' ] ,
8988 } ,
9089 './dev-test/githunt/types.preResolveTypes.onlyOperationTypes.ts' : {
9190 schema : './dev-test/githunt/schema.json' ,
9291 documents : './dev-test/githunt/**/*.graphql' ,
93- config : { preResolveTypes : true , onlyOperationTypes : true } ,
94- plugins : [ 'typescript' , 'typescript -operations'] ,
92+ config : { preResolveTypes : true } ,
93+ plugins : [ 'typescript-operations' ] ,
9594 } ,
9695 './dev-test/githunt/types.flatten.preResolveTypes.ts' : {
9796 schema : './dev-test/githunt/schema.json' ,
9897 documents : './dev-test/githunt/**/*.graphql' ,
9998 config : { preResolveTypes : true , flattenGeneratedTypes : true } ,
100- plugins : [ 'typescript' , 'typescript -operations'] ,
99+ plugins : [ 'typescript-operations' ] ,
101100 } ,
102101 './dev-test/githunt/types.enumsAsTypes.ts' : {
103102 schema : './dev-test/githunt/schema.json' ,
104103 documents : './dev-test/githunt/**/*.graphql' ,
105- config : { enumsAsTypes : true } ,
106- plugins : [ 'typescript' , 'typescript -operations'] ,
104+ config : { enumType : 'string-literal' } ,
105+ plugins : [ 'typescript-operations' ] ,
107106 } ,
108107 './dev-test/githunt/types.d.ts' : {
109108 schema : './dev-test/githunt/schema.json' ,
110109 documents : './dev-test/githunt/**/*.graphql' ,
111- config : { enumsAsTypes : true } ,
112- plugins : [ 'typescript' , 'typescript -operations'] ,
110+ config : { } ,
111+ plugins : [ 'typescript-operations' ] ,
113112 } ,
114113 './dev-test/githunt/types.avoidOptionals.ts' : {
115114 schema : './dev-test/githunt/schema.json' ,
116115 documents : './dev-test/githunt/**/*.graphql' ,
117116 config : { avoidOptionals : true } ,
118- plugins : [ 'typescript' , 'typescript -operations'] ,
117+ plugins : [ 'typescript-operations' ] ,
119118 } ,
120119 './dev-test/githunt/types.immutableTypes.ts' : {
121120 schema : './dev-test/githunt/schema.json' ,
122121 documents : './dev-test/githunt/**/*.graphql' ,
123122 config : { immutableTypes : true } ,
124- plugins : [ 'typescript' , 'typescript -operations'] ,
123+ plugins : [ 'typescript-operations' ] ,
125124 } ,
126125 './dev-test/star-wars/types.ts' : {
127126 schema : './dev-test/star-wars/schema.json' ,
128127 documents : './dev-test/star-wars/**/*.graphql' ,
129- plugins : [ 'typescript' , 'typescript -operations'] ,
128+ plugins : [ 'typescript-operations' ] ,
130129 } ,
131130 './dev-test/star-wars/types.excludeQueryAlpha.ts' : {
132131 schema : './dev-test/star-wars/schema.json' ,
133132 documents : [
134133 './dev-test/star-wars/**/*.graphql' ,
135134 '!./dev-test/star-wars/**/ExcludeQueryAlpha.graphql' ,
136135 ] ,
137- plugins : [ 'typescript' , 'typescript -operations'] ,
136+ plugins : [ 'typescript-operations' ] ,
138137 } ,
139138 './dev-test/star-wars/types.excludeQueryBeta.ts' : {
140139 schema : './dev-test/star-wars/schema.json' ,
141140 documents : [
142141 './dev-test/star-wars/**/*.graphql' ,
143142 '!./dev-test/star-wars/**/ExcludeQueryBeta.graphql' ,
144143 ] ,
145- plugins : [ 'typescript' , 'typescript -operations'] ,
144+ plugins : [ 'typescript-operations' ] ,
146145 } ,
147146 './dev-test/star-wars/types.preResolveTypes.ts' : {
148147 schema : './dev-test/star-wars/schema.json' ,
149148 documents : './dev-test/star-wars/**/*.graphql' ,
150149 config : { preResolveTypes : true } ,
151- plugins : [ 'typescript' , 'typescript -operations'] ,
150+ plugins : [ 'typescript-operations' ] ,
152151 } ,
153152 './dev-test/star-wars/types.OnlyEnums.ts' : {
154153 schema : './dev-test/star-wars/schema.json' ,
@@ -159,25 +158,25 @@ const config: CodegenConfig = {
159158 './dev-test/star-wars/types.preResolveTypes.onlyOperationTypes.ts' : {
160159 schema : './dev-test/star-wars/schema.json' ,
161160 documents : './dev-test/star-wars/**/*.graphql' ,
162- config : { preResolveTypes : true , onlyOperationTypes : true } ,
163- plugins : [ 'typescript' , 'typescript -operations'] ,
161+ config : { preResolveTypes : true } ,
162+ plugins : [ 'typescript-operations' ] ,
164163 } ,
165164 './dev-test/test-schema/types.preResolveTypes.ts' : {
166165 schema : './dev-test/test-schema/schema.graphql' ,
167166 documents : [ 'query test { testArr1 testArr2 testArr3 }' ] ,
168167 config : { preResolveTypes : true } ,
169- plugins : [ 'typescript' , 'typescript -operations'] ,
168+ plugins : [ 'typescript-operations' ] ,
170169 } ,
171170 './dev-test/test-schema/types.preResolveTypes.onlyOperationTypes.ts' : {
172171 schema : './dev-test/test-schema/schema.graphql' ,
173172 documents : [ 'query test { testArr1 testArr2 testArr3 }' ] ,
174- config : { preResolveTypes : true , onlyOperationTypes : true } ,
175- plugins : [ 'typescript' , 'typescript -operations'] ,
173+ config : { preResolveTypes : true } ,
174+ plugins : [ 'typescript-operations' ] ,
176175 } ,
177176 './dev-test/star-wars/types.d.ts' : {
178177 schema : './dev-test/star-wars/schema.json' ,
179- config : { enumsAsTypes : true } ,
180- plugins : [ 'typescript' , 'typescript -operations'] ,
178+ config : { enumType : 'string-literal' } ,
179+ plugins : [ 'typescript-operations' ] ,
181180 } ,
182181 './dev-test/modules/' : {
183182 schema : './dev-test/modules/*/types/*.graphql' ,
@@ -188,25 +187,25 @@ const config: CodegenConfig = {
188187 './dev-test/star-wars/types.globallyAvailable.d.ts' : {
189188 schema : './dev-test/star-wars/schema.json' ,
190189 documents : './dev-test/star-wars/**/*.graphql' ,
191- config : { enumsAsTypes : true , noExport : true } ,
192- plugins : [ 'typescript' , 'typescript -operations'] ,
190+ config : { noExport : true } ,
191+ plugins : [ 'typescript-operations' ] ,
193192 } ,
194193 './dev-test/star-wars/types.avoidOptionals.ts' : {
195194 schema : './dev-test/star-wars/schema.json' ,
196195 documents : './dev-test/star-wars/**/*.graphql' ,
197196 config : { avoidOptionals : true } ,
198- plugins : [ 'typescript' , 'typescript -operations'] ,
197+ plugins : [ 'typescript-operations' ] ,
199198 } ,
200199 './dev-test/star-wars/types.immutableTypes.ts' : {
201200 schema : './dev-test/star-wars/schema.json' ,
202201 documents : './dev-test/star-wars/**/*.graphql' ,
203202 config : { immutableTypes : true } ,
204- plugins : [ 'typescript' , 'typescript -operations'] ,
203+ plugins : [ 'typescript-operations' ] ,
205204 } ,
206205 './dev-test/star-wars/types.skipSchema.ts' : {
207206 schema : './dev-test/star-wars/schema.json' ,
208207 documents : './dev-test/star-wars/**/*.graphql' ,
209- plugins : [ 'typescript' , 'typescript -operations'] ,
208+ plugins : [ 'typescript-operations' ] ,
210209 } ,
211210 './dev-test/gql-tag-operations/gql/' : {
212211 schema : './dev-test/gql-tag-operations/schema.graphql' ,
@@ -233,7 +232,7 @@ const config: CodegenConfig = {
233232 './dev-test/test-null-value/result.d.ts' : {
234233 schema : './dev-test/test-null-value/schema.graphql' ,
235234 documents : [ './dev-test/test-null-value/query.ts' ] ,
236- plugins : [ 'typescript' , 'typescript -operations'] ,
235+ plugins : [ 'typescript-operations' ] ,
237236 config : {
238237 // The combination of these two flags caused the following issue:
239238 // https://github.com/dotansimha/graphql-code-generator/pull/9709
0 commit comments