fix api-codegen -s not working bug
This commit is contained in:
parent
d76000a1e4
commit
6ab69e4141
3 changed files with 3 additions and 3 deletions
2
dist/codegen.js
vendored
2
dist/codegen.js
vendored
|
@ -297,7 +297,7 @@ function codegenSchemas(schemas, config, cp) {
|
|||
}
|
||||
function codegen(openAPI, configUser) {
|
||||
var _a;
|
||||
var config = Object.assign({}, configUser, Config_1.configDefault);
|
||||
var config = Object.assign({}, Config_1.configDefault, configUser);
|
||||
// prepare
|
||||
fs.mkdirSync(config.outputDir, { recursive: true });
|
||||
var apiFuncs = OpenAPI_1.apiFunctionsOf(openAPI);
|
||||
|
|
|
@ -287,7 +287,7 @@ function codegenSchemas(schemas: Schemas, config: Config, cp: CodePrinter) {
|
|||
}
|
||||
|
||||
export default function codegen(openAPI: OpenAPI, configUser: ConfigUser) {
|
||||
const config: Config = Object.assign({}, configUser, configDefault);
|
||||
const config: Config = Object.assign({}, configDefault, configUser);
|
||||
// prepare
|
||||
fs.mkdirSync(config.outputDir, {recursive: true});
|
||||
const apiFuncs = apiFunctionsOf(openAPI);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@supmiku39/api-ts-gen",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.0-fix01",
|
||||
"description": "OpenAPI code generator for TypeScript",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
|
Reference in a new issue