We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86c794c commit ba45321Copy full SHA for ba45321
1 file changed
src/cli/index.ts
@@ -1,10 +1,8 @@
1
import { main } from './cli.js';
2
import { fileURLToPath } from 'url';
3
-import { dirname } from 'path';
4
5
// Get current file path for ESM compatibility
6
const __filename = fileURLToPath(import.meta.url);
7
-const __dirname = dirname(__filename);
8
9
// Check if this module is being run directly
10
const isMainModule = process.argv[1] === __filename || process.argv[1]?.endsWith('/cli/index.cjs');
0 commit comments