File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11import path from 'node:path'
2+ import { fileURLToPath } from 'node:url'
23import { createTypeDocApp } from './typedoc-markdown.mjs'
34
4- const __dirname = path . dirname ( new URL ( import . meta. url ) . pathname )
5+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
56
67createTypeDocApp ( {
78 name : 'API Documentation' ,
Original file line number Diff line number Diff line change 11// @ts -check
22import fs from 'node:fs/promises'
33import path from 'node:path'
4+ import { fileURLToPath } from 'node:url'
45import { Application , PageEvent , TSConfigReader } from 'typedoc'
56
6- const __dirname = path . dirname ( new URL ( import . meta. url ) . pathname )
7+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
78
89const DEFAULT_OPTIONS = {
910 // disableOutputCheck: true,
Original file line number Diff line number Diff line change 11import path from 'node:path'
2+ import { fileURLToPath } from 'node:url'
23import ts from 'rollup-plugin-typescript2'
34import replace from '@rollup/plugin-replace'
45import resolve from '@rollup/plugin-node-resolve'
56import commonjs from '@rollup/plugin-commonjs'
67import terser from '@rollup/plugin-terser'
78import { defineConfig } from 'rollup'
89
9- const __dirname = path . dirname ( new URL ( import . meta. url ) . pathname )
10+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
1011
1112const config = defineConfig ( {
1213 external : [ 'vue' ] ,
Original file line number Diff line number Diff line change 11import fs from 'node:fs/promises'
22import path from 'node:path'
3+ import { fileURLToPath } from 'node:url'
34import chalk from 'chalk'
45import { gzipSync } from 'zlib'
56import { compress } from 'brotli'
67
7- const __dirname = path . dirname ( new URL ( import . meta. url ) . pathname )
8+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
89
910async function checkFileSize ( filePath ) {
1011 const stat = await fs . stat ( filePath ) . catch ( ( ) => null )
You can’t perform that action at this time.
0 commit comments