Nuxt/packages/nitro/src/dirs.ts

7 lines
240 B
TypeScript
Raw Normal View History

import { fileURLToPath } from 'url'
import { dirname, resolve } from 'pathe'
export const distDir = dirname(fileURLToPath(import.meta.url))
export const pkgDir = resolve(distDir, '..')
export const runtimeDir = resolve(distDir, 'runtime')