Skip to content

Commit 86bc30f

Browse files
build: cross compat
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent f006032 commit 86bc30f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/docs/typedoc-markdown.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import fs from 'node:fs/promises'
33
import path from 'node:path'
44
import { Application, TSConfigReader, PageEvent } from 'typedoc'
55

6-
const __dirname = path.dirname(new URL(import.meta.url).pathname)
6+
import { fileURLToPath } from 'node:url'
7+
const __dirname = path.dirname(fileURLToPath(import.meta.url))
78

89
/** @satisfies {Partial<import('typedoc').TypeDocOptions & import('typedoc-plugin-markdown').PluginOptions>} */
910
const DEFAULT_OPTIONS = {

0 commit comments

Comments
 (0)