const minimum = { major: 18, minor: 17 };
const [major, minor] = process.versions.node.split('.').map(Number);

if (major < minimum.major || (major === minimum.major && minor < minimum.minor)) {
  console.error(
    `Node.js ${minimum.major}.${minimum.minor}+ is required. ` +
    `Current runtime is ${process.versions.node}.`
  );
  console.error('Use Node 22 LTS for this project, then rerun the command.');
  process.exit(1);
}
