mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
9 lines
335 B
TypeScript
9 lines
335 B
TypeScript
import { fileURLToPath } from 'node:url'
|
|
import { dirname, resolve } from 'pathe'
|
|
|
|
let _distDir = dirname(fileURLToPath(import.meta.url))
|
|
if (_distDir.endsWith('chunks')) { _distDir = dirname(_distDir) }
|
|
export const distDir = _distDir
|
|
export const pkgDir = resolve(distDir, '..')
|
|
export const runtimeDir = resolve(distDir, 'runtime')
|