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 4ab69ec commit c96b6f4Copy full SHA for c96b6f4
build/generate-types.js
@@ -1,9 +1,11 @@
1
'use strict'
2
3
+const path = require('node:path')
4
+
5
Promise.resolve().then(async () => {
6
const { default: openapiTS } = await import('openapi-typescript')
7
- const localPath = new URL('../openapi.json', import.meta.url)
8
+ const localPath = path.resolve(__dirname, '../openapi.json')
9
const output = await openapiTS(localPath, {
10
formatter (node) {
11
if (node.format === 'binary') {
0 commit comments