mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-16 19:04:48 +00:00
7 lines
234 B
TypeScript
7 lines
234 B
TypeScript
import { fileURLToPath } from 'node:url'
|
|
import { dirname } from 'pathe'
|
|
|
|
let _distDir = dirname(fileURLToPath(import.meta.url))
|
|
if (_distDir.match(/(chunks|shared)$/)) { _distDir = dirname(_distDir) }
|
|
export const distDir = _distDir
|