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