Skip to content

Commit c96b6f4

Browse files
author
Pelle Wessman
committed
Fix broken generation script
1 parent 4ab69ec commit c96b6f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/generate-types.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
'use strict'
22

3+
const path = require('node:path')
4+
35
Promise.resolve().then(async () => {
46
const { default: openapiTS } = await import('openapi-typescript')
57

6-
const localPath = new URL('../openapi.json', import.meta.url)
8+
const localPath = path.resolve(__dirname, '../openapi.json')
79
const output = await openapiTS(localPath, {
810
formatter (node) {
911
if (node.format === 'binary') {

0 commit comments

Comments
 (0)