@storybook/cli 8.0.0-rc.1 → 8.0.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const majorNodeVersion = parseInt(process.version.toString().replace('v', '').split('.')[0], 10);
4
- if (majorNodeVersion < 16) {
5
- console.error('To run storybook you need to have node 16 or higher');
3
+ const majorNodeVersion = parseInt(process.versions.node, 10);
4
+ if (majorNodeVersion < 18) {
5
+ console.error('To run Storybook you need to have Node.js 18 or higher');
6
6
  process.exit(1);
7
7
  }
8
8
 
@@ -1,5 +1,5 @@
1
1
  import './chunk-WUKYLWAZ.mjs';
2
- import './chunk-3BMY5HTZ.mjs';
2
+ import './chunk-R3DRYDIZ.mjs';
3
3
  import { dedent } from 'ts-dedent';
4
4
  import { lt } from 'semver';
5
5
  import chalk from 'chalk';
@@ -1,5 +1,5 @@
1
1
  import './chunk-WUKYLWAZ.mjs';
2
- import './chunk-3BMY5HTZ.mjs';
2
+ import './chunk-R3DRYDIZ.mjs';
3
3
  import { dedent } from 'ts-dedent';
4
4
  import { lt } from 'semver';
5
5
  import chalk from 'chalk';
@@ -1,5 +1,5 @@
1
1
  import './chunk-WUKYLWAZ.mjs';
2
- import './chunk-3BMY5HTZ.mjs';
2
+ import './chunk-R3DRYDIZ.mjs';
3
3
  import { dedent } from 'ts-dedent';
4
4
  import chalk from 'chalk';
5
5