storybook/code/lib/cli/bin/index.js
2023-02-06 15:48:47 +01:00

10 lines
274 B
JavaScript
Executable File

#!/usr/bin/env node
const majorNodeVersion = parseInt(process.version.toString().replace('v', '').split('.')[0], 10);
if (majorNodeVersion < 16) {
console.error('To run storybook you need to have node 16 or higher');
process.exit(1);
}
require('../dist/generate.js');