Skip to content

Commit

Permalink
feat: Prioritize 'source' property in package.json
Browse files Browse the repository at this point in the history
Ticket: VL-2669
  • Loading branch information
bitgopatmcl committed Jan 16, 2025
1 parent 81f4103 commit cf6eb8c
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 cf6eb8c

Please sign in to comment.