We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 81f4103 + cf6eb8c commit 75d1efaCopy full SHA for 75d1efa
packages/openapi-generator/src/project.ts
@@ -123,12 +123,12 @@ export class Project {
123
124
let typesEntryPoint = '';
125
126
- if (packageInfo['types']) {
127
- typesEntryPoint = packageInfo['types'];
128
- }
129
-
130
- if (packageInfo['typings']) {
+ if (packageInfo['source']) {
+ typesEntryPoint = packageInfo['source'];
+ } else if (packageInfo['typings']) {
131
typesEntryPoint = packageInfo['typings'];
+ } else if (packageInfo['types']) {
+ typesEntryPoint = packageInfo['types'];
132
}
133
134
if (!typesEntryPoint) {
0 commit comments