diff --git a/src/utils.ts b/src/utils.ts index 965fe8b..a36a265 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,6 +1,9 @@ +// @ts-nocheck import { isAbsolute, join } from "node:path"; export function getPath(dir: string) { + if (typeof process === "undefined") return dir; + if (isAbsolute(dir)) return dir; if (isAbsolute(process.argv[1])) return join(process.argv[1], "..", dir);