briven.js 392 B

123456789
  1. #!/usr/bin/env node
  2. import { pathToFileURL } from 'node:url';
  3. import { resolve, dirname } from 'node:path';
  4. import { fileURLToPath } from 'node:url';
  5. const here = dirname(fileURLToPath(import.meta.url));
  6. const mod = await import(pathToFileURL(resolve(here, '../dist/cli/index.js')).href);
  7. const code = await mod.run(process.argv.slice(2));
  8. process.exit(typeof code === 'number' ? code : 0);