Skip to content

Commit 2a3cea0

Browse files
committed
fix(audits): resolve local bins under vitest
1 parent 0132614 commit 2a3cea0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/local-bin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import path from 'node:path'
2+
import { fileURLToPath } from 'node:url'
23

3-
const ROOT = path.resolve(import.meta.dir, '..')
4+
const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..')
45

56
/**
67
* Absolute path to a locally-installed executable.

0 commit comments

Comments
 (0)