Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/docs/run-typedoc.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import { createTypeDocApp } from './typedoc-markdown.mjs'

const __dirname = path.dirname(new URL(import.meta.url).pathname)
const __dirname = path.dirname(fileURLToPath(import.meta.url))

createTypeDocApp({
name: 'API Documentation',
Expand Down
3 changes: 2 additions & 1 deletion packages/docs/typedoc-markdown.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// @ts-check
import fs from 'node:fs/promises'
import path from 'node:path'
import {fileURLToPath} from 'node:url'
import { Application, PageEvent, TSConfigReader } from 'typedoc'

const __dirname = path.dirname(new URL(import.meta.url).pathname)
const __dirname = path.dirname(fileURLToPath(import.meta.url))

const DEFAULT_OPTIONS = {
// disableOutputCheck: true,
Expand Down
3 changes: 2 additions & 1 deletion packages/router/size-checks/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import path from 'node:path'
import {fileURLToPath} from 'node:url'
import ts from 'rollup-plugin-typescript2'
import replace from '@rollup/plugin-replace'
import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import terser from '@rollup/plugin-terser'
import { defineConfig } from 'rollup'

const __dirname = path.dirname(new URL(import.meta.url).pathname)
const __dirname = path.dirname(fileURLToPath(import.meta.url))

const config = defineConfig({
external: ['vue'],
Expand Down
3 changes: 2 additions & 1 deletion scripts/check-size.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import fs from 'node:fs/promises'
import path from 'node:path'
import {fileURLToPath} from 'node:url'
import chalk from 'chalk'
import { gzipSync } from 'zlib'
import { compress } from 'brotli'

const __dirname = path.dirname(new URL(import.meta.url).pathname)
const __dirname = path.dirname(fileURLToPath(import.meta.url))

async function checkFileSize(filePath) {
const stat = await fs.stat(filePath).catch(() => null)
Expand Down