Skip to content

Commit f407e49

Browse files
committed
chore: normalize external path
1 parent 052341e commit f407e49

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

dev/openapi-ts.config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,20 @@ export default defineConfig(() => {
3535
// },
3636
path: path.resolve(
3737
getSpecsPath(),
38-
// '3.0.x',
39-
'3.1.x',
38+
'3.0.x',
39+
// '3.1.x',
4040
// 'circular.yaml',
4141
// 'dutchie.json',
4242
// 'enum-names-values.yaml',
4343
// 'invalid',
4444
// 'full.yaml',
45+
'sdk-method-class-conflict.yaml',
4546
// 'object-property-names.yaml',
4647
// 'openai.yaml',
4748
// 'opencode.yaml',
4849
// 'pagination-ref.yaml',
4950
// 'sdk-instance.yaml',
50-
'sdk-nested-classes.yaml',
51+
// 'sdk-nested-classes.yaml',
5152
// 'string-with-format.yaml',
5253
// 'transformers.json',
5354
// 'transformers-recursive.json',

packages/codegen-core/src/symbols/symbol.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import path from 'node:path';
2+
13
import { symbolBrand } from '../brands';
24
import { debug } from '../debug';
35
import type { ISymbolMeta } from '../extensions';
@@ -97,7 +99,11 @@ export class Symbol {
9799
constructor(input: ISymbolIn, id: number) {
98100
this._exported = input.exported ?? false;
99101
this._exportFrom = input.exportFrom ?? [];
100-
this._external = input.external;
102+
if (input.external) {
103+
this._external = input.external
104+
.split(path.win32.sep)
105+
.join(path.posix.sep);
106+
}
101107
this._getFilePath = input.getFilePath;
102108
this.id = id;
103109
this._importKind = input.importKind ?? 'named';

0 commit comments

Comments
 (0)