mirror of
https://github.com/warkanum/monorepo-dep-checker.git
synced 2026-02-03 08:24:26 +00:00
Added linting, changed to esm loading
This commit is contained in:
@@ -1 +1,12 @@
|
||||
import('../dist/index.js').then(module => module.default()).catch(console.error);
|
||||
#!/usr/bin/env node
|
||||
|
||||
import { createRequire } from 'module';
|
||||
import { fileURLToPath } from 'url';
|
||||
import { dirname, join } from 'path';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
const require = createRequire(import.meta.url);
|
||||
|
||||
const { default: run } = await import(join(__dirname, '../dist/index.js'));
|
||||
run().catch(console.error);
|
||||
|
||||
Reference in New Issue
Block a user