Skip to content

Commit

Permalink
chore: remove process usage...
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed May 12, 2024
1 parent 8764bee commit fdbd914
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -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);

Expand Down

0 comments on commit fdbd914

Please sign in to comment.