We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28edc4d commit f759135Copy full SHA for f759135
4 files changed
bin/command-line-definitions.ts
@@ -5,8 +5,8 @@ import { join } from "node:path";
5
import { getAsset, isSea } from "node:sea";
6
import { getCurrentFileInfo } from '../src/compat.js';
7
8
-// Get current file info with ESM/CommonJS compatibility
9
-const { __dirname } = getCurrentFileInfo(import.meta.url);
+// @ts-ignore - Get current file info with ESM/CommonJS compatibility
+const { __dirname } = getCurrentFileInfo(import.meta?.url);
10
11
const packageVersion = getPackageVersion();
12
0 commit comments