Skip to content

Commit

Permalink
Merge pull request #988 from BitGo/VL-2669-source-property
Browse files Browse the repository at this point in the history
feat: Prioritize 'source' property in package.json
  • Loading branch information
ericcrosson-bitgo authored Jan 16, 2025
2 parents 81f4103 + cf6eb8c commit 75d1efa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/openapi-generator/src/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ export class Project {

let typesEntryPoint = '';

if (packageInfo['types']) {
typesEntryPoint = packageInfo['types'];
}

if (packageInfo['typings']) {
if (packageInfo['source']) {
typesEntryPoint = packageInfo['source'];
} else if (packageInfo['typings']) {
typesEntryPoint = packageInfo['typings'];
} else if (packageInfo['types']) {
typesEntryPoint = packageInfo['types'];
}

if (!typesEntryPoint) {
Expand Down

0 comments on commit 75d1efa

Please sign in to comment.