Skip to content

Commit

Permalink
fix: update openapi-typescript@6.4.0 for support CJS bundle, and use …
Browse files Browse the repository at this point in the history
…medium version
  • Loading branch information
liangskyli committed Aug 12, 2023
1 parent 5d644a1 commit 959ec0e
Show file tree
Hide file tree
Showing 4 changed files with 513 additions and 476 deletions.
2 changes: 1 addition & 1 deletion packages/openapi-gen-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"axios": "^1.4.0",
"commander": "^11.0.0",
"fs-extra": "^11.1.1",
"openapi-typescript": "^6.3.7",
"openapi-typescript": "~6.4.5",
"swagger2openapi": "^7.0.8",
"typescript-json-schema": "^0.59.0"
},
Expand Down
10 changes: 0 additions & 10 deletions packages/openapi-gen-ts/src/esm-to-commjs/openapi-typescript.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/openapi-gen-ts/src/gen/file/gen-ts-schema.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { IPrettierOptions } from '@liangskyli/utils';
import openapiTS from 'openapi-typescript';
import path from 'path';
import type * as TJS from 'typescript-json-schema';
import openapiTS from '../../esm-to-commjs/openapi-typescript';
import { fileTip, writePrettierFile } from '../../utils';
import type { IGenTsDataOpts } from '../index';

Expand Down
Loading

0 comments on commit 959ec0e

Please sign in to comment.