@storybook/core-server 6.5.0-alpha.57 → 6.5.0-alpha.58

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.
@@ -178,7 +178,13 @@ async function buildStaticStandalone(options) {
178
178
  options: fullOptions
179
179
  });
180
180
 
181
- var _await$Promise$all = await Promise.all([manager, preview]),
181
+ var _await$Promise$all = await Promise.all([manager.catch(async function (err) {
182
+ await previewBuilder.bail();
183
+ throw err;
184
+ }), preview.catch(async function (err) {
185
+ await managerBuilder.bail();
186
+ throw err;
187
+ })]),
182
188
  _await$Promise$all2 = _slicedToArray(_await$Promise$all, 2),
183
189
  managerStats = _await$Promise$all2[0],
184
190
  previewStats = _await$Promise$all2[1];
@@ -136,12 +136,18 @@ async function storybookDevServer(options) {
136
136
  server: server
137
137
  });
138
138
 
139
- var _await$Promise$all = await Promise.all([preview, manager // TODO #13083 Restore this when compiling the preview is fast enough
139
+ var _await$Promise$all = await Promise.all([preview.catch(async function (err) {
140
+ await managerBuilder.bail();
141
+ throw err;
142
+ }), manager // TODO #13083 Restore this when compiling the preview is fast enough
140
143
  // .then((result) => {
141
144
  // if (!options.ci && !options.smokeTest) openInBrowser(address);
142
145
  // return result;
143
146
  // })
144
- .catch(previewBuilder.bail)]),
147
+ .catch(async function (err) {
148
+ await previewBuilder.bail();
149
+ throw err;
150
+ })]),
145
151
  _await$Promise$all2 = _slicedToArray(_await$Promise$all, 2),
146
152
  previewResult = _await$Promise$all2[0],
147
153
  managerResult = _await$Promise$all2[1]; // TODO #13083 Remove this when compiling the preview is fast enough
@@ -144,7 +144,13 @@ export async function buildStaticStandalone(options) {
144
144
  options: fullOptions
145
145
  });
146
146
 
147
- var _await$Promise$all = await Promise.all([manager, preview]),
147
+ var _await$Promise$all = await Promise.all([manager.catch(async function (err) {
148
+ await previewBuilder.bail();
149
+ throw err;
150
+ }), preview.catch(async function (err) {
151
+ await managerBuilder.bail();
152
+ throw err;
153
+ })]),
148
154
  _await$Promise$all2 = _slicedToArray(_await$Promise$all, 2),
149
155
  managerStats = _await$Promise$all2[0],
150
156
  previewStats = _await$Promise$all2[1];
@@ -106,12 +106,18 @@ export async function storybookDevServer(options) {
106
106
  server: server
107
107
  });
108
108
 
109
- var _await$Promise$all = await Promise.all([preview, manager // TODO #13083 Restore this when compiling the preview is fast enough
109
+ var _await$Promise$all = await Promise.all([preview.catch(async function (err) {
110
+ await managerBuilder.bail();
111
+ throw err;
112
+ }), manager // TODO #13083 Restore this when compiling the preview is fast enough
110
113
  // .then((result) => {
111
114
  // if (!options.ci && !options.smokeTest) openInBrowser(address);
112
115
  // return result;
113
116
  // })
114
- .catch(previewBuilder.bail)]),
117
+ .catch(async function (err) {
118
+ await previewBuilder.bail();
119
+ throw err;
120
+ })]),
115
121
  _await$Promise$all2 = _slicedToArray(_await$Promise$all, 2),
116
122
  previewResult = _await$Promise$all2[0],
117
123
  managerResult = _await$Promise$all2[1]; // TODO #13083 Remove this when compiling the preview is fast enough
@@ -144,7 +144,13 @@ export async function buildStaticStandalone(options) {
144
144
  options: fullOptions
145
145
  });
146
146
 
147
- var _await$Promise$all = await Promise.all([manager, preview]),
147
+ var _await$Promise$all = await Promise.all([manager.catch(async function (err) {
148
+ await previewBuilder.bail();
149
+ throw err;
150
+ }), preview.catch(async function (err) {
151
+ await managerBuilder.bail();
152
+ throw err;
153
+ })]),
148
154
  _await$Promise$all2 = _slicedToArray(_await$Promise$all, 2),
149
155
  managerStats = _await$Promise$all2[0],
150
156
  previewStats = _await$Promise$all2[1];
@@ -106,12 +106,18 @@ export async function storybookDevServer(options) {
106
106
  server: server
107
107
  });
108
108
 
109
- var _await$Promise$all = await Promise.all([preview, manager // TODO #13083 Restore this when compiling the preview is fast enough
109
+ var _await$Promise$all = await Promise.all([preview.catch(async function (err) {
110
+ await managerBuilder.bail();
111
+ throw err;
112
+ }), manager // TODO #13083 Restore this when compiling the preview is fast enough
110
113
  // .then((result) => {
111
114
  // if (!options.ci && !options.smokeTest) openInBrowser(address);
112
115
  // return result;
113
116
  // })
114
- .catch(previewBuilder.bail)]),
117
+ .catch(async function (err) {
118
+ await previewBuilder.bail();
119
+ throw err;
120
+ })]),
115
121
  _await$Promise$all2 = _slicedToArray(_await$Promise$all, 2),
116
122
  previewResult = _await$Promise$all2[0],
117
123
  managerResult = _await$Promise$all2[1]; // TODO #13083 Remove this when compiling the preview is fast enough
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/core-server",
3
- "version": "6.5.0-alpha.57",
3
+ "version": "6.5.0-alpha.58",
4
4
  "description": "Storybook framework-agnostic API",
5
5
  "keywords": [
6
6
  "storybook"
@@ -40,16 +40,16 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@discoveryjs/json-ext": "^0.5.3",
43
- "@storybook/builder-webpack4": "6.5.0-alpha.57",
44
- "@storybook/core-client": "6.5.0-alpha.57",
45
- "@storybook/core-common": "6.5.0-alpha.57",
46
- "@storybook/core-events": "6.5.0-alpha.57",
43
+ "@storybook/builder-webpack4": "6.5.0-alpha.58",
44
+ "@storybook/core-client": "6.5.0-alpha.58",
45
+ "@storybook/core-common": "6.5.0-alpha.58",
46
+ "@storybook/core-events": "6.5.0-alpha.58",
47
47
  "@storybook/csf": "0.0.2--canary.7c6c115.0",
48
- "@storybook/csf-tools": "6.5.0-alpha.57",
49
- "@storybook/manager-webpack4": "6.5.0-alpha.57",
50
- "@storybook/node-logger": "6.5.0-alpha.57",
48
+ "@storybook/csf-tools": "6.5.0-alpha.58",
49
+ "@storybook/manager-webpack4": "6.5.0-alpha.58",
50
+ "@storybook/node-logger": "6.5.0-alpha.58",
51
51
  "@storybook/semver": "^7.3.2",
52
- "@storybook/store": "6.5.0-alpha.57",
52
+ "@storybook/store": "6.5.0-alpha.58",
53
53
  "@types/node": "^14.0.10 || ^16.0.0",
54
54
  "@types/node-fetch": "^2.5.7",
55
55
  "@types/pretty-hrtime": "^1.0.0",
@@ -85,7 +85,7 @@
85
85
  "x-default-browser": "^0.4.0"
86
86
  },
87
87
  "devDependencies": {
88
- "@storybook/builder-webpack5": "6.5.0-alpha.57",
88
+ "@storybook/builder-webpack5": "6.5.0-alpha.58",
89
89
  "@types/compression": "^1.7.0",
90
90
  "@types/ip": "^1.1.0",
91
91
  "@types/serve-favicon": "^2.5.2",
@@ -110,6 +110,6 @@
110
110
  "publishConfig": {
111
111
  "access": "public"
112
112
  },
113
- "gitHead": "896ac6a6110669efbb754ed62ed211274c0d3547",
113
+ "gitHead": "bf25496b2d3d2daa91ab211a9b73b1f4d5b0b52d",
114
114
  "sbmodern": "dist/modern/index.js"
115
115
  }