import { createRequire } from 'node:module';

const require = createRequire(import.meta.url);
const pkg = require('../../package.json') as { version: string };

export function printVersion(): void {
  process.stdout.write(`${pkg.version}\n`);
}
