Nuxt/packages/vite/src/dirs.ts

6 lines
186 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, '..')