Skip to content

Commit cf6eb8c

Browse files
committed
feat: Prioritize 'source' property in package.json
Ticket: VL-2669
1 parent 81f4103 commit cf6eb8c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/openapi-generator/src/project.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ export class Project {
123123

124124
let typesEntryPoint = '';
125125

126-
if (packageInfo['types']) {
127-
typesEntryPoint = packageInfo['types'];
128-
}
129-
130-
if (packageInfo['typings']) {
126+
if (packageInfo['source']) {
127+
typesEntryPoint = packageInfo['source'];
128+
} else if (packageInfo['typings']) {
131129
typesEntryPoint = packageInfo['typings'];
130+
} else if (packageInfo['types']) {
131+
typesEntryPoint = packageInfo['types'];
132132
}
133133

134134
if (!typesEntryPoint) {

0 commit comments

Comments
 (0)