vike
Version:
The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.
13 lines (12 loc) • 474 B
JavaScript
export { assertNodeVersion };
import { isNodeJS } from './isNodeJS.js';
import { assertVersion } from './assertVersion.js';
// node_modules/vike/package.json#engines.node isn't enough, as users often ignore it
function assertNodeVersion() {
if (!isNodeJS())
return;
const version = process.versions.node;
assertVersion('Node.js', version,
// https://gist.github.com/brillout/8e0133716e169b981b6c4e8a938b0134
['20.19.0', '22.12.0', '23.0.0']);
}