single-source-of-truth
Version:
Use Zod schemas to your generate Prisma schema
17 lines • 595 B
JavaScript
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