astro-ghostcms/.pnpm-store/v3/files/6a/811be33757589bc5aa3720fc871...

25 lines
638 B
Plaintext

import * as os from 'os'
import * as path from 'path'
import { normalizePath } from 'vite'
const isWindows = os.platform() == 'win32'
export const resolve = isWindows
? (...paths: string[]) => normalizePath(path.win32.resolve(...paths))
: path.posix.resolve
export const isAbsolute = isWindows
? path.win32.isAbsolute
: path.posix.isAbsolute
/** Only call this on normalized paths */
export const join = path.posix.join
/** Only call this on normalized paths */
export const relative = path.posix.relative
/** Only call this on normalized paths */
export const basename = path.posix.basename
export { dirname } from 'path'