UNPKG

single-source-of-truth

Version:
17 lines 595 B
#!/usr/bin/env node import 'tsx'; import { pathToFileURL } from 'node:url'; import { Command } from 'commander'; import { Registry } from './registry.js'; const program = new Command('truth').action(async () => { const configPath = pathToFileURL('truth.config.ts').toString(); const configFn = await import(configPath) // .then((m) => m.default); return configFn({ registry: new Registry(), 'zod/v4': await import('./zod/v4/config'), prisma: await import('./prisma/config'), }); }); program.parse(process.argv); //# sourceMappingURL=command.js.map