Archived
1
0
Fork 0

fix api-codegen -s not working bug

This commit is contained in:
supmiku39 2020-04-15 07:56:12 +09:00
parent d76000a1e4
commit 6ab69e4141
3 changed files with 3 additions and 3 deletions

2
dist/codegen.js vendored
View file

@ -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);

View file

@ -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);

View file

@ -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",