Files
NapCatQQ/.pnpm-store/v3/files/6a/811be33757589bc5aa3720fc871a16d161d64ed2930dc0bbfde6cd8f993b48f1f9a3268e31ff1928875f79200fb15afe77851b569aa67495c15c90e8e8e1d2
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

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'