Skip to content

Commit 75d1efa

Browse files
Merge pull request #988 from BitGo/VL-2669-source-property
feat: Prioritize 'source' property in package.json
2 parents 81f4103 + cf6eb8c commit 75d1efa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: 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)