@@ -13,32 +13,17 @@ export async function generate(options: LimitedUserConfig, version: string) {
1313 const openApiOutputPath = buildRequestsOutputPath ( options . output ) ;
1414 const formattedOptions = formatOptions ( options ) ;
1515
16+ // Map old client option to new plugins system
17+ const plugins : UserConfig [ "plugins" ] = [
18+ "@hey-api/typescript" ,
19+ "@hey-api/sdk" ,
20+ ] ;
21+
1622 const config : UserConfig = {
17- client : formattedOptions . client ,
18- debug : formattedOptions . debug ,
1923 dryRun : false ,
20- exportCore : true ,
21- output : {
22- format : formattedOptions . format ,
23- lint : formattedOptions . lint ,
24- path : openApiOutputPath ,
25- } ,
2624 input : formattedOptions . input ,
27- schemas : {
28- export : ! formattedOptions . noSchemas ,
29- type : formattedOptions . schemaType ,
30- } ,
31- services : {
32- export : true ,
33- asClass : false ,
34- operationId : ! formattedOptions . noOperationId ,
35- } ,
36- types : {
37- dates : formattedOptions . useDateType ,
38- export : true ,
39- enums : formattedOptions . enums ,
40- } ,
41- useOptions : true ,
25+ output : openApiOutputPath ,
26+ plugins,
4227 } ;
4328 await createClient ( config ) ;
4429 const source = await createSource ( {
0 commit comments