Skip to content

Commit 6696db2

Browse files
committed
fix: ignore ESM type error that will only run in ESM
1 parent 38d8e85 commit 6696db2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ui/registry/registry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function getCurrentDir(): string {
1010
if (typeof __dirname !== "undefined") {
1111
return __dirname;
1212
}
13+
// @ts-ignore - import.meta is only available in ESM, but this code path is only executed in ESM
1314
return dirname(fileURLToPath(import.meta.url));
1415
}
1516

0 commit comments

Comments
 (0)