File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ if (OpenAPI) {
35
35
exportServices : JSON . parse ( program . exportServices ) === true ,
36
36
exportModels : JSON . parse ( program . exportModels ) === true ,
37
37
exportSchemas : JSON . parse ( program . exportSchemas ) === true ,
38
- apiAlias : program . apiAlias
38
+ apiAlias : program . apiAlias || '../core/request'
39
39
} )
40
40
. then ( ( ) => {
41
41
process . exit ( 0 ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " openapi-typescript-codegen" ,
3
- "version" : " 0.6.0 " ,
3
+ "version" : " 0.6.1 " ,
4
4
"description" : " NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification." ,
5
5
"author" : " zengxiangda" ,
6
6
"homepage" : " http://gitlab.psf-dev.com/frontend/openapi-typescritp-codegen" ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export async function generate({
54
54
exportModels = true ,
55
55
exportSchemas = false ,
56
56
write = true ,
57
- apiAlias,
57
+ apiAlias = '../core/request' ,
58
58
} : Options ) : Promise < void > {
59
59
const openApi = isString ( input ) ? await getOpenApiSpec ( input ) : input ;
60
60
const openApiVersion = getOpenApiVersion ( openApi ) ;
You can’t perform that action at this time.
0 commit comments