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.
1 parent 81f4103 commit cf6eb8cCopy full SHA for cf6eb8c
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