File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ describe('utils', () => {
119
119
} ) ;
120
120
121
121
expect ( command ) . toBe (
122
- 'npx @hey-api/openapi-ts -i ./api/spec.yaml -o ./src/generated -c @hey-api/client-fetch -p @hey-api/typescript, @hey-api/sdk' ,
122
+ 'npx @hey-api/openapi-ts -i ./api/spec.yaml -o ./src/generated -c @hey-api/client-fetch -p @hey-api/typescript -p @hey-api/sdk' ,
123
123
) ;
124
124
} ) ;
125
125
@@ -132,7 +132,7 @@ describe('utils', () => {
132
132
} ) ;
133
133
134
134
expect ( command ) . toBe (
135
- 'npx @hey-api/openapi-ts -i ./api/spec.yaml -o ./src/generated -c @hey-api/client-fetch -p @tanstack/react-query, zod' ,
135
+ 'npx @hey-api/openapi-ts -i ./api/spec.yaml -o ./src/generated -c @hey-api/client-fetch -p @tanstack/react-query -p zod' ,
136
136
) ;
137
137
} ) ;
138
138
} ) ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export function generateClientCommand({
32
32
plugins : Plugin [ ] ;
33
33
specFile : string ;
34
34
} ) {
35
- return `npx @hey-api/openapi-ts -i ${ specFile } -o ${ outputPath } -c ${ clientType } ${ plugins . length > 0 ? ` -p ${ plugins . map ( getPluginName ) . join ( ', ' ) } ` : '' } ` ;
35
+ return `npx @hey-api/openapi-ts -i ${ specFile } -o ${ outputPath } -c ${ clientType } ${ plugins . length > 0 ? ` ${ plugins . map ( ( plugin ) => `-p ${ getPluginName ( plugin ) } ` ) . join ( ' ' ) } ` : '' } ` ;
36
36
}
37
37
38
38
/**
You can’t perform that action at this time.
0 commit comments