chore: remove dirs import

This commit is contained in:
Benjamin Canac
2021-11-24 12:28:51 +01:00
parent 0029e145ec
commit 4518796401
2 changed files with 3 additions and 14 deletions

View File

@@ -1,11 +0,0 @@
import { fileURLToPath } from 'url'
import { resolve } from 'pathe'
export const distDir = resolve(typeof __dirname === 'undefined' ? fileURLToPath(import.meta.url) : __dirname)
const _makeResolve = (base: string) => {
return (...p: string[]) => resolve(base, ...p)
}
export const runtimeDir = resolve(distDir, 'runtime')
export const resolveRuntimeDir = _makeResolve(runtimeDir)