Nuxt/packages/bridge/src/dirs.ts
2021-10-02 18:01:17 +02:00

6 lines
186 B
TypeScript

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