@storybook/cli 7.0.0-alpha.3 → 7.0.0-alpha.6

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.
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.npm7 = void 0;
7
+
8
+ require("core-js/modules/es.promise.js");
9
+
10
+ var _chalk = _interopRequireDefault(require("chalk"));
11
+
12
+ var _tsDedent = _interopRequireDefault(require("ts-dedent"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ /**
17
+ * Is the user using npm7+? If so create a .npmrc with legacy-peer-deps=true
18
+ */
19
+ const npm7 = {
20
+ id: 'npm7',
21
+
22
+ async check({
23
+ packageManager
24
+ }) {
25
+ if (packageManager.type !== 'npm') return null;
26
+ const npmVersion = packageManager.getNpmVersion();
27
+
28
+ if (packageManager.needsLegacyPeerDeps(npmVersion)) {
29
+ return {
30
+ npmVersion
31
+ };
32
+ }
33
+
34
+ return null;
35
+ },
36
+
37
+ prompt({
38
+ npmVersion
39
+ }) {
40
+ const npmFormatted = _chalk.default.cyan(`npm ${npmVersion}`);
41
+
42
+ return (0, _tsDedent.default)`
43
+ We've detected you are running ${npmFormatted} which has peer dependency semantics which Storybook is incompatible with.
44
+
45
+ In order to work with Storybook's package structure, you'll need to run \`npm\` with the
46
+ \`--legacy-peer-deps=true\` flag. We can generate an \`.npmrc\` which will do that automatically.
47
+
48
+ More info: ${_chalk.default.yellow('https://github.com/storybookjs/storybook/issues/18298')}
49
+ `;
50
+ },
51
+
52
+ async run({
53
+ packageManager
54
+ }) {
55
+ packageManager.setLegacyPeerDeps();
56
+ }
57
+
58
+ };
59
+ exports.npm7 = npm7;
@@ -30,10 +30,25 @@ class NPMProxy extends _JsPackageManager.JsPackageManager {
30
30
  return `npm run ${command}`;
31
31
  }
32
32
 
33
+ getNpmVersion() {
34
+ return this.executeCommand('npm', ['--version']);
35
+ }
36
+
37
+ hasLegacyPeerDeps() {
38
+ return this.executeCommand('npm', ['config', 'get', 'legacy-peer-deps', '--location=project']) === 'true';
39
+ }
40
+
41
+ setLegacyPeerDeps() {
42
+ this.executeCommand('npm', ['config', 'set', 'legacy-peer-deps=true', '--location=project']);
43
+ }
44
+
45
+ needsLegacyPeerDeps(version) {
46
+ return _semver.default.gte(version, '7.0.0') && !this.hasLegacyPeerDeps();
47
+ }
48
+
33
49
  getInstallArgs() {
34
50
  if (!this.installArgs) {
35
- const version = this.executeCommand('npm', ['--version']);
36
- this.installArgs = _semver.default.gte(version, '7.0.0') ? ['install', '--legacy-peer-deps'] : ['install'];
51
+ this.installArgs = this.needsLegacyPeerDeps(this.getNpmVersion()) ? ['install', '--legacy-peer-deps'] : ['install'];
37
52
  }
38
53
 
39
54
  return this.installArgs;
@@ -6,78 +6,78 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  // auto generated file, do not edit
8
8
  var _default = {
9
- '@storybook/addon-a11y': '7.0.0-alpha.3',
10
- '@storybook/addon-actions': '7.0.0-alpha.3',
11
- '@storybook/addon-backgrounds': '7.0.0-alpha.3',
12
- '@storybook/addon-controls': '7.0.0-alpha.3',
13
- '@storybook/addon-docs': '7.0.0-alpha.3',
14
- '@storybook/addon-essentials': '7.0.0-alpha.3',
15
- '@storybook/addon-interactions': '7.0.0-alpha.3',
16
- '@storybook/addon-jest': '7.0.0-alpha.3',
17
- '@storybook/addon-links': '7.0.0-alpha.3',
18
- '@storybook/addon-measure': '7.0.0-alpha.3',
19
- '@storybook/addon-outline': '7.0.0-alpha.3',
20
- '@storybook/addon-storyshots': '7.0.0-alpha.3',
21
- '@storybook/addon-storyshots-puppeteer': '7.0.0-alpha.3',
22
- '@storybook/addon-storysource': '7.0.0-alpha.3',
23
- '@storybook/addon-toolbars': '7.0.0-alpha.3',
24
- '@storybook/addon-viewport': '7.0.0-alpha.3',
25
- '@storybook/addons': '7.0.0-alpha.3',
26
- '@storybook/angular': '7.0.0-alpha.3',
27
- '@storybook/api': '7.0.0-alpha.3',
28
- '@storybook/builder-webpack5': '7.0.0-alpha.3',
29
- '@storybook/channel-postmessage': '7.0.0-alpha.3',
30
- '@storybook/channel-websocket': '7.0.0-alpha.3',
31
- '@storybook/channels': '7.0.0-alpha.3',
32
- '@storybook/cli': '7.0.0-alpha.3',
33
- '@storybook/client-api': '7.0.0-alpha.3',
34
- '@storybook/client-logger': '7.0.0-alpha.3',
35
- '@storybook/codemod': '7.0.0-alpha.3',
36
- '@storybook/components': '7.0.0-alpha.3',
37
- '@storybook/core-client': '7.0.0-alpha.3',
38
- '@storybook/core-common': '7.0.0-alpha.3',
39
- '@storybook/core-events': '7.0.0-alpha.3',
40
- '@storybook/core-server': '7.0.0-alpha.3',
41
- '@storybook/core-webpack': '7.0.0-alpha.3',
42
- '@storybook/csf-tools': '7.0.0-alpha.3',
43
- '@storybook/docs-tools': '7.0.0-alpha.3',
44
- '@storybook/ember': '7.0.0-alpha.3',
45
- '@storybook/html': '7.0.0-alpha.3',
46
- '@storybook/html-webpack5': '7.0.0-alpha.3',
47
- '@storybook/instrumenter': '7.0.0-alpha.3',
48
- '@storybook/manager-webpack5': '7.0.0-alpha.3',
49
- '@storybook/node-logger': '7.0.0-alpha.3',
50
- '@storybook/postinstall': '7.0.0-alpha.3',
51
- '@storybook/preact': '7.0.0-alpha.3',
52
- '@storybook/preact-webpack5': '7.0.0-alpha.3',
53
- '@storybook/preset-html-webpack': '7.0.0-alpha.3',
54
- '@storybook/preset-preact-webpack': '7.0.0-alpha.3',
55
- '@storybook/preset-react-webpack': '7.0.0-alpha.3',
56
- '@storybook/preset-server-webpack': '7.0.0-alpha.3',
57
- '@storybook/preset-svelte-webpack': '7.0.0-alpha.3',
58
- '@storybook/preset-vue-webpack': '7.0.0-alpha.3',
59
- '@storybook/preset-vue3-webpack': '7.0.0-alpha.3',
60
- '@storybook/preset-web-components-webpack': '7.0.0-alpha.3',
61
- '@storybook/preview-web': '7.0.0-alpha.3',
62
- '@storybook/react': '7.0.0-alpha.3',
63
- '@storybook/react-webpack5': '7.0.0-alpha.3',
64
- '@storybook/router': '7.0.0-alpha.3',
65
- '@storybook/server': '7.0.0-alpha.3',
66
- '@storybook/server-webpack5': '7.0.0-alpha.3',
67
- '@storybook/source-loader': '7.0.0-alpha.3',
68
- '@storybook/store': '7.0.0-alpha.3',
69
- '@storybook/svelte': '7.0.0-alpha.3',
70
- '@storybook/svelte-webpack5': '7.0.0-alpha.3',
71
- '@storybook/telemetry': '7.0.0-alpha.3',
72
- '@storybook/theming': '7.0.0-alpha.3',
73
- '@storybook/ui': '7.0.0-alpha.3',
74
- '@storybook/vue': '7.0.0-alpha.3',
75
- '@storybook/vue-webpack5': '7.0.0-alpha.3',
76
- '@storybook/vue3': '7.0.0-alpha.3',
77
- '@storybook/vue3-webpack5': '7.0.0-alpha.3',
78
- '@storybook/web-components': '7.0.0-alpha.3',
79
- '@storybook/web-components-webpack5': '7.0.0-alpha.3',
80
- sb: '7.0.0-alpha.3',
81
- storybook: '7.0.0-alpha.3'
9
+ '@storybook/addon-a11y': '7.0.0-alpha.6',
10
+ '@storybook/addon-actions': '7.0.0-alpha.6',
11
+ '@storybook/addon-backgrounds': '7.0.0-alpha.6',
12
+ '@storybook/addon-controls': '7.0.0-alpha.6',
13
+ '@storybook/addon-docs': '7.0.0-alpha.6',
14
+ '@storybook/addon-essentials': '7.0.0-alpha.6',
15
+ '@storybook/addon-interactions': '7.0.0-alpha.6',
16
+ '@storybook/addon-jest': '7.0.0-alpha.6',
17
+ '@storybook/addon-links': '7.0.0-alpha.6',
18
+ '@storybook/addon-measure': '7.0.0-alpha.6',
19
+ '@storybook/addon-outline': '7.0.0-alpha.6',
20
+ '@storybook/addon-storyshots': '7.0.0-alpha.6',
21
+ '@storybook/addon-storyshots-puppeteer': '7.0.0-alpha.6',
22
+ '@storybook/addon-storysource': '7.0.0-alpha.6',
23
+ '@storybook/addon-toolbars': '7.0.0-alpha.6',
24
+ '@storybook/addon-viewport': '7.0.0-alpha.6',
25
+ '@storybook/addons': '7.0.0-alpha.6',
26
+ '@storybook/angular': '7.0.0-alpha.6',
27
+ '@storybook/api': '7.0.0-alpha.6',
28
+ '@storybook/builder-webpack5': '7.0.0-alpha.6',
29
+ '@storybook/channel-postmessage': '7.0.0-alpha.6',
30
+ '@storybook/channel-websocket': '7.0.0-alpha.6',
31
+ '@storybook/channels': '7.0.0-alpha.6',
32
+ '@storybook/cli': '7.0.0-alpha.6',
33
+ '@storybook/client-api': '7.0.0-alpha.6',
34
+ '@storybook/client-logger': '7.0.0-alpha.6',
35
+ '@storybook/codemod': '7.0.0-alpha.6',
36
+ '@storybook/components': '7.0.0-alpha.6',
37
+ '@storybook/core-client': '7.0.0-alpha.6',
38
+ '@storybook/core-common': '7.0.0-alpha.6',
39
+ '@storybook/core-events': '7.0.0-alpha.6',
40
+ '@storybook/core-server': '7.0.0-alpha.6',
41
+ '@storybook/core-webpack': '7.0.0-alpha.6',
42
+ '@storybook/csf-tools': '7.0.0-alpha.6',
43
+ '@storybook/docs-tools': '7.0.0-alpha.6',
44
+ '@storybook/ember': '7.0.0-alpha.6',
45
+ '@storybook/html': '7.0.0-alpha.6',
46
+ '@storybook/html-webpack5': '7.0.0-alpha.6',
47
+ '@storybook/instrumenter': '7.0.0-alpha.6',
48
+ '@storybook/manager-webpack5': '7.0.0-alpha.6',
49
+ '@storybook/node-logger': '7.0.0-alpha.6',
50
+ '@storybook/postinstall': '7.0.0-alpha.6',
51
+ '@storybook/preact': '7.0.0-alpha.6',
52
+ '@storybook/preact-webpack5': '7.0.0-alpha.6',
53
+ '@storybook/preset-html-webpack': '7.0.0-alpha.6',
54
+ '@storybook/preset-preact-webpack': '7.0.0-alpha.6',
55
+ '@storybook/preset-react-webpack': '7.0.0-alpha.6',
56
+ '@storybook/preset-server-webpack': '7.0.0-alpha.6',
57
+ '@storybook/preset-svelte-webpack': '7.0.0-alpha.6',
58
+ '@storybook/preset-vue-webpack': '7.0.0-alpha.6',
59
+ '@storybook/preset-vue3-webpack': '7.0.0-alpha.6',
60
+ '@storybook/preset-web-components-webpack': '7.0.0-alpha.6',
61
+ '@storybook/preview-web': '7.0.0-alpha.6',
62
+ '@storybook/react': '7.0.0-alpha.6',
63
+ '@storybook/react-webpack5': '7.0.0-alpha.6',
64
+ '@storybook/router': '7.0.0-alpha.6',
65
+ '@storybook/server': '7.0.0-alpha.6',
66
+ '@storybook/server-webpack5': '7.0.0-alpha.6',
67
+ '@storybook/source-loader': '7.0.0-alpha.6',
68
+ '@storybook/store': '7.0.0-alpha.6',
69
+ '@storybook/svelte': '7.0.0-alpha.6',
70
+ '@storybook/svelte-webpack5': '7.0.0-alpha.6',
71
+ '@storybook/telemetry': '7.0.0-alpha.6',
72
+ '@storybook/theming': '7.0.0-alpha.6',
73
+ '@storybook/ui': '7.0.0-alpha.6',
74
+ '@storybook/vue': '7.0.0-alpha.6',
75
+ '@storybook/vue-webpack5': '7.0.0-alpha.6',
76
+ '@storybook/vue3': '7.0.0-alpha.6',
77
+ '@storybook/vue3-webpack5': '7.0.0-alpha.6',
78
+ '@storybook/web-components': '7.0.0-alpha.6',
79
+ '@storybook/web-components-webpack5': '7.0.0-alpha.6',
80
+ sb: '7.0.0-alpha.6',
81
+ storybook: '7.0.0-alpha.6'
82
82
  };
83
83
  exports.default = _default;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.npm7 = void 0;
7
+
8
+ require("core-js/modules/es.promise.js");
9
+
10
+ var _chalk = _interopRequireDefault(require("chalk"));
11
+
12
+ var _tsDedent = _interopRequireDefault(require("ts-dedent"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ /**
17
+ * Is the user using npm7+? If so create a .npmrc with legacy-peer-deps=true
18
+ */
19
+ const npm7 = {
20
+ id: 'npm7',
21
+
22
+ async check({
23
+ packageManager
24
+ }) {
25
+ if (packageManager.type !== 'npm') return null;
26
+ const npmVersion = packageManager.getNpmVersion();
27
+
28
+ if (packageManager.needsLegacyPeerDeps(npmVersion)) {
29
+ return {
30
+ npmVersion
31
+ };
32
+ }
33
+
34
+ return null;
35
+ },
36
+
37
+ prompt({
38
+ npmVersion
39
+ }) {
40
+ const npmFormatted = _chalk.default.cyan(`npm ${npmVersion}`);
41
+
42
+ return (0, _tsDedent.default)`
43
+ We've detected you are running ${npmFormatted} which has peer dependency semantics which Storybook is incompatible with.
44
+
45
+ In order to work with Storybook's package structure, you'll need to run \`npm\` with the
46
+ \`--legacy-peer-deps=true\` flag. We can generate an \`.npmrc\` which will do that automatically.
47
+
48
+ More info: ${_chalk.default.yellow('https://github.com/storybookjs/storybook/issues/18298')}
49
+ `;
50
+ },
51
+
52
+ async run({
53
+ packageManager
54
+ }) {
55
+ packageManager.setLegacyPeerDeps();
56
+ }
57
+
58
+ };
59
+ exports.npm7 = npm7;
@@ -30,10 +30,25 @@ class NPMProxy extends _JsPackageManager.JsPackageManager {
30
30
  return `npm run ${command}`;
31
31
  }
32
32
 
33
+ getNpmVersion() {
34
+ return this.executeCommand('npm', ['--version']);
35
+ }
36
+
37
+ hasLegacyPeerDeps() {
38
+ return this.executeCommand('npm', ['config', 'get', 'legacy-peer-deps', '--location=project']) === 'true';
39
+ }
40
+
41
+ setLegacyPeerDeps() {
42
+ this.executeCommand('npm', ['config', 'set', 'legacy-peer-deps=true', '--location=project']);
43
+ }
44
+
45
+ needsLegacyPeerDeps(version) {
46
+ return _semver.default.gte(version, '7.0.0') && !this.hasLegacyPeerDeps();
47
+ }
48
+
33
49
  getInstallArgs() {
34
50
  if (!this.installArgs) {
35
- const version = this.executeCommand('npm', ['--version']);
36
- this.installArgs = _semver.default.gte(version, '7.0.0') ? ['install', '--legacy-peer-deps'] : ['install'];
51
+ this.installArgs = this.needsLegacyPeerDeps(this.getNpmVersion()) ? ['install', '--legacy-peer-deps'] : ['install'];
37
52
  }
38
53
 
39
54
  return this.installArgs;
@@ -6,78 +6,78 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  // auto generated file, do not edit
8
8
  var _default = {
9
- '@storybook/addon-a11y': '7.0.0-alpha.3',
10
- '@storybook/addon-actions': '7.0.0-alpha.3',
11
- '@storybook/addon-backgrounds': '7.0.0-alpha.3',
12
- '@storybook/addon-controls': '7.0.0-alpha.3',
13
- '@storybook/addon-docs': '7.0.0-alpha.3',
14
- '@storybook/addon-essentials': '7.0.0-alpha.3',
15
- '@storybook/addon-interactions': '7.0.0-alpha.3',
16
- '@storybook/addon-jest': '7.0.0-alpha.3',
17
- '@storybook/addon-links': '7.0.0-alpha.3',
18
- '@storybook/addon-measure': '7.0.0-alpha.3',
19
- '@storybook/addon-outline': '7.0.0-alpha.3',
20
- '@storybook/addon-storyshots': '7.0.0-alpha.3',
21
- '@storybook/addon-storyshots-puppeteer': '7.0.0-alpha.3',
22
- '@storybook/addon-storysource': '7.0.0-alpha.3',
23
- '@storybook/addon-toolbars': '7.0.0-alpha.3',
24
- '@storybook/addon-viewport': '7.0.0-alpha.3',
25
- '@storybook/addons': '7.0.0-alpha.3',
26
- '@storybook/angular': '7.0.0-alpha.3',
27
- '@storybook/api': '7.0.0-alpha.3',
28
- '@storybook/builder-webpack5': '7.0.0-alpha.3',
29
- '@storybook/channel-postmessage': '7.0.0-alpha.3',
30
- '@storybook/channel-websocket': '7.0.0-alpha.3',
31
- '@storybook/channels': '7.0.0-alpha.3',
32
- '@storybook/cli': '7.0.0-alpha.3',
33
- '@storybook/client-api': '7.0.0-alpha.3',
34
- '@storybook/client-logger': '7.0.0-alpha.3',
35
- '@storybook/codemod': '7.0.0-alpha.3',
36
- '@storybook/components': '7.0.0-alpha.3',
37
- '@storybook/core-client': '7.0.0-alpha.3',
38
- '@storybook/core-common': '7.0.0-alpha.3',
39
- '@storybook/core-events': '7.0.0-alpha.3',
40
- '@storybook/core-server': '7.0.0-alpha.3',
41
- '@storybook/core-webpack': '7.0.0-alpha.3',
42
- '@storybook/csf-tools': '7.0.0-alpha.3',
43
- '@storybook/docs-tools': '7.0.0-alpha.3',
44
- '@storybook/ember': '7.0.0-alpha.3',
45
- '@storybook/html': '7.0.0-alpha.3',
46
- '@storybook/html-webpack5': '7.0.0-alpha.3',
47
- '@storybook/instrumenter': '7.0.0-alpha.3',
48
- '@storybook/manager-webpack5': '7.0.0-alpha.3',
49
- '@storybook/node-logger': '7.0.0-alpha.3',
50
- '@storybook/postinstall': '7.0.0-alpha.3',
51
- '@storybook/preact': '7.0.0-alpha.3',
52
- '@storybook/preact-webpack5': '7.0.0-alpha.3',
53
- '@storybook/preset-html-webpack': '7.0.0-alpha.3',
54
- '@storybook/preset-preact-webpack': '7.0.0-alpha.3',
55
- '@storybook/preset-react-webpack': '7.0.0-alpha.3',
56
- '@storybook/preset-server-webpack': '7.0.0-alpha.3',
57
- '@storybook/preset-svelte-webpack': '7.0.0-alpha.3',
58
- '@storybook/preset-vue-webpack': '7.0.0-alpha.3',
59
- '@storybook/preset-vue3-webpack': '7.0.0-alpha.3',
60
- '@storybook/preset-web-components-webpack': '7.0.0-alpha.3',
61
- '@storybook/preview-web': '7.0.0-alpha.3',
62
- '@storybook/react': '7.0.0-alpha.3',
63
- '@storybook/react-webpack5': '7.0.0-alpha.3',
64
- '@storybook/router': '7.0.0-alpha.3',
65
- '@storybook/server': '7.0.0-alpha.3',
66
- '@storybook/server-webpack5': '7.0.0-alpha.3',
67
- '@storybook/source-loader': '7.0.0-alpha.3',
68
- '@storybook/store': '7.0.0-alpha.3',
69
- '@storybook/svelte': '7.0.0-alpha.3',
70
- '@storybook/svelte-webpack5': '7.0.0-alpha.3',
71
- '@storybook/telemetry': '7.0.0-alpha.3',
72
- '@storybook/theming': '7.0.0-alpha.3',
73
- '@storybook/ui': '7.0.0-alpha.3',
74
- '@storybook/vue': '7.0.0-alpha.3',
75
- '@storybook/vue-webpack5': '7.0.0-alpha.3',
76
- '@storybook/vue3': '7.0.0-alpha.3',
77
- '@storybook/vue3-webpack5': '7.0.0-alpha.3',
78
- '@storybook/web-components': '7.0.0-alpha.3',
79
- '@storybook/web-components-webpack5': '7.0.0-alpha.3',
80
- sb: '7.0.0-alpha.3',
81
- storybook: '7.0.0-alpha.3'
9
+ '@storybook/addon-a11y': '7.0.0-alpha.6',
10
+ '@storybook/addon-actions': '7.0.0-alpha.6',
11
+ '@storybook/addon-backgrounds': '7.0.0-alpha.6',
12
+ '@storybook/addon-controls': '7.0.0-alpha.6',
13
+ '@storybook/addon-docs': '7.0.0-alpha.6',
14
+ '@storybook/addon-essentials': '7.0.0-alpha.6',
15
+ '@storybook/addon-interactions': '7.0.0-alpha.6',
16
+ '@storybook/addon-jest': '7.0.0-alpha.6',
17
+ '@storybook/addon-links': '7.0.0-alpha.6',
18
+ '@storybook/addon-measure': '7.0.0-alpha.6',
19
+ '@storybook/addon-outline': '7.0.0-alpha.6',
20
+ '@storybook/addon-storyshots': '7.0.0-alpha.6',
21
+ '@storybook/addon-storyshots-puppeteer': '7.0.0-alpha.6',
22
+ '@storybook/addon-storysource': '7.0.0-alpha.6',
23
+ '@storybook/addon-toolbars': '7.0.0-alpha.6',
24
+ '@storybook/addon-viewport': '7.0.0-alpha.6',
25
+ '@storybook/addons': '7.0.0-alpha.6',
26
+ '@storybook/angular': '7.0.0-alpha.6',
27
+ '@storybook/api': '7.0.0-alpha.6',
28
+ '@storybook/builder-webpack5': '7.0.0-alpha.6',
29
+ '@storybook/channel-postmessage': '7.0.0-alpha.6',
30
+ '@storybook/channel-websocket': '7.0.0-alpha.6',
31
+ '@storybook/channels': '7.0.0-alpha.6',
32
+ '@storybook/cli': '7.0.0-alpha.6',
33
+ '@storybook/client-api': '7.0.0-alpha.6',
34
+ '@storybook/client-logger': '7.0.0-alpha.6',
35
+ '@storybook/codemod': '7.0.0-alpha.6',
36
+ '@storybook/components': '7.0.0-alpha.6',
37
+ '@storybook/core-client': '7.0.0-alpha.6',
38
+ '@storybook/core-common': '7.0.0-alpha.6',
39
+ '@storybook/core-events': '7.0.0-alpha.6',
40
+ '@storybook/core-server': '7.0.0-alpha.6',
41
+ '@storybook/core-webpack': '7.0.0-alpha.6',
42
+ '@storybook/csf-tools': '7.0.0-alpha.6',
43
+ '@storybook/docs-tools': '7.0.0-alpha.6',
44
+ '@storybook/ember': '7.0.0-alpha.6',
45
+ '@storybook/html': '7.0.0-alpha.6',
46
+ '@storybook/html-webpack5': '7.0.0-alpha.6',
47
+ '@storybook/instrumenter': '7.0.0-alpha.6',
48
+ '@storybook/manager-webpack5': '7.0.0-alpha.6',
49
+ '@storybook/node-logger': '7.0.0-alpha.6',
50
+ '@storybook/postinstall': '7.0.0-alpha.6',
51
+ '@storybook/preact': '7.0.0-alpha.6',
52
+ '@storybook/preact-webpack5': '7.0.0-alpha.6',
53
+ '@storybook/preset-html-webpack': '7.0.0-alpha.6',
54
+ '@storybook/preset-preact-webpack': '7.0.0-alpha.6',
55
+ '@storybook/preset-react-webpack': '7.0.0-alpha.6',
56
+ '@storybook/preset-server-webpack': '7.0.0-alpha.6',
57
+ '@storybook/preset-svelte-webpack': '7.0.0-alpha.6',
58
+ '@storybook/preset-vue-webpack': '7.0.0-alpha.6',
59
+ '@storybook/preset-vue3-webpack': '7.0.0-alpha.6',
60
+ '@storybook/preset-web-components-webpack': '7.0.0-alpha.6',
61
+ '@storybook/preview-web': '7.0.0-alpha.6',
62
+ '@storybook/react': '7.0.0-alpha.6',
63
+ '@storybook/react-webpack5': '7.0.0-alpha.6',
64
+ '@storybook/router': '7.0.0-alpha.6',
65
+ '@storybook/server': '7.0.0-alpha.6',
66
+ '@storybook/server-webpack5': '7.0.0-alpha.6',
67
+ '@storybook/source-loader': '7.0.0-alpha.6',
68
+ '@storybook/store': '7.0.0-alpha.6',
69
+ '@storybook/svelte': '7.0.0-alpha.6',
70
+ '@storybook/svelte-webpack5': '7.0.0-alpha.6',
71
+ '@storybook/telemetry': '7.0.0-alpha.6',
72
+ '@storybook/theming': '7.0.0-alpha.6',
73
+ '@storybook/ui': '7.0.0-alpha.6',
74
+ '@storybook/vue': '7.0.0-alpha.6',
75
+ '@storybook/vue-webpack5': '7.0.0-alpha.6',
76
+ '@storybook/vue3': '7.0.0-alpha.6',
77
+ '@storybook/vue3-webpack5': '7.0.0-alpha.6',
78
+ '@storybook/web-components': '7.0.0-alpha.6',
79
+ '@storybook/web-components-webpack5': '7.0.0-alpha.6',
80
+ sb: '7.0.0-alpha.6',
81
+ storybook: '7.0.0-alpha.6'
82
82
  };
83
83
  exports.default = _default;
@@ -0,0 +1,9 @@
1
+ import { Fix } from '../types';
2
+ interface Npm7RunOptions {
3
+ npmVersion: string;
4
+ }
5
+ /**
6
+ * Is the user using npm7+? If so create a .npmrc with legacy-peer-deps=true
7
+ */
8
+ export declare const npm7: Fix<Npm7RunOptions>;
9
+ export {};
@@ -5,6 +5,10 @@ export declare class NPMProxy extends JsPackageManager {
5
5
  initPackageJson(): string;
6
6
  getRunStorybookCommand(): string;
7
7
  getRunCommand(command: string): string;
8
+ getNpmVersion(): string;
9
+ hasLegacyPeerDeps(): boolean;
10
+ setLegacyPeerDeps(): void;
11
+ needsLegacyPeerDeps(version: string): boolean;
8
12
  getInstallArgs(): string[];
9
13
  protected runInstall(): void;
10
14
  protected runAddDeps(dependencies: string[], installAsDevDependencies: boolean): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/cli",
3
- "version": "7.0.0-alpha.3",
3
+ "version": "7.0.0-alpha.6",
4
4
  "description": "Storybook's CLI - easiest method of adding storybook to your projects",
5
5
  "keywords": [
6
6
  "cli",
@@ -47,13 +47,13 @@
47
47
  "dependencies": {
48
48
  "@babel/core": "^7.12.10",
49
49
  "@babel/preset-env": "^7.12.11",
50
- "@storybook/codemod": "7.0.0-alpha.3",
51
- "@storybook/core-common": "7.0.0-alpha.3",
52
- "@storybook/core-server": "7.0.0-alpha.3",
53
- "@storybook/csf-tools": "7.0.0-alpha.3",
54
- "@storybook/node-logger": "7.0.0-alpha.3",
50
+ "@storybook/codemod": "7.0.0-alpha.6",
51
+ "@storybook/core-common": "7.0.0-alpha.6",
52
+ "@storybook/core-server": "7.0.0-alpha.6",
53
+ "@storybook/csf-tools": "7.0.0-alpha.6",
54
+ "@storybook/node-logger": "7.0.0-alpha.6",
55
55
  "@storybook/semver": "^7.3.2",
56
- "@storybook/telemetry": "7.0.0-alpha.3",
56
+ "@storybook/telemetry": "7.0.0-alpha.6",
57
57
  "boxen": "^5.1.2",
58
58
  "chalk": "^4.1.0",
59
59
  "commander": "^6.2.1",
@@ -78,7 +78,7 @@
78
78
  "update-notifier": "^5.0.1"
79
79
  },
80
80
  "devDependencies": {
81
- "@storybook/client-api": "7.0.0-alpha.3",
81
+ "@storybook/client-api": "7.0.0-alpha.6",
82
82
  "@types/cross-spawn": "^6.0.2",
83
83
  "@types/prompts": "^2.0.9",
84
84
  "@types/puppeteer-core": "^2.1.0",
@@ -91,5 +91,5 @@
91
91
  "publishConfig": {
92
92
  "access": "public"
93
93
  },
94
- "gitHead": "629b056190993bcee6445471b8cb27208eb401a9"
94
+ "gitHead": "a88dcca40ba169a373bad33dd76e9a4bd4f1f5ec"
95
95
  }