Checkpoint current interactive fiction state
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user