@api-ts/openapi-generator
Advanced tools
Comparing version
@@ -130,8 +130,11 @@ "use strict"; | ||
let typesEntryPoint = ''; | ||
if (packageInfo['types']) { | ||
typesEntryPoint = packageInfo['types']; | ||
if (packageInfo['source']) { | ||
typesEntryPoint = packageInfo['source']; | ||
} | ||
if (packageInfo['typings']) { | ||
else if (packageInfo['typings']) { | ||
typesEntryPoint = packageInfo['typings']; | ||
} | ||
else if (packageInfo['types']) { | ||
typesEntryPoint = packageInfo['types']; | ||
} | ||
if (!typesEntryPoint) { | ||
@@ -138,0 +141,0 @@ return (0, error_1.errorLeft)(`Could not find types entry point for ${library}`); |
{ | ||
"name": "@api-ts/openapi-generator", | ||
"version": "5.4.0", | ||
"version": "5.5.0", | ||
"description": "Generate an OpenAPI specification from an io-ts-http contract", | ||
@@ -38,3 +38,3 @@ "author": "Patrick McLaughlin <patrickmclaughlin@bitgo.com>", | ||
"c8": "10.1.3", | ||
"memfs": "4.15.1", | ||
"memfs": "4.17.0", | ||
"typescript": "4.7.4" | ||
@@ -41,0 +41,0 @@ }, |
Sorry, the diff of this file is not supported yet
261750
0.08%3259
0.09%