@storybook/core-server 6.5.0-alpha.41 → 6.5.0-alpha.44

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.
@@ -18,6 +18,8 @@ var _tsDedent = _interopRequireDefault(require("ts-dedent"));
18
18
 
19
19
  var _prompts = _interopRequireDefault(require("prompts"));
20
20
 
21
+ var _global = _interopRequireDefault(require("global"));
22
+
21
23
  var _path = _interopRequireDefault(require("path"));
22
24
 
23
25
  var _devServer = require("./dev-server");
@@ -106,6 +108,7 @@ async function buildDevStandalone(options) {
106
108
  overridePresets: previewBuilder.overridePresets
107
109
  }, options));
108
110
  var features = await presets.apply('features');
111
+ _global.default.FEATURES = features;
109
112
 
110
113
  var fullOptions = _objectSpread(_objectSpread({}, options), {}, {
111
114
  presets: presets,
@@ -20,6 +20,8 @@ var _path = _interopRequireDefault(require("path"));
20
20
 
21
21
  var _tsDedent = _interopRequireDefault(require("ts-dedent"));
22
22
 
23
+ var _global = _interopRequireDefault(require("global"));
24
+
23
25
  var _nodeLogger = require("@storybook/node-logger");
24
26
 
25
27
  var _coreCommon = require("@storybook/core-common");
@@ -121,6 +123,7 @@ async function buildStaticStandalone(options) {
121
123
  }
122
124
 
123
125
  var features = await presets.apply('features');
126
+ _global.default.FEATURES = features;
124
127
 
125
128
  if (features !== null && features !== void 0 && features.buildStoriesJson || features !== null && features !== void 0 && features.storyStoreV7) {
126
129
  var directories = {
@@ -22,6 +22,7 @@ import { logger, instance as npmLog } from '@storybook/node-logger';
22
22
  import { resolvePathInStorybookCache, loadAllPresets, cache } from '@storybook/core-common';
23
23
  import dedent from 'ts-dedent';
24
24
  import prompts from 'prompts';
25
+ import global from 'global';
25
26
  import path from 'path';
26
27
  import { storybookDevServer } from './dev-server';
27
28
  import { getDevCli } from './cli';
@@ -80,6 +81,7 @@ export async function buildDevStandalone(options) {
80
81
  overridePresets: previewBuilder.overridePresets
81
82
  }, options));
82
83
  var features = await presets.apply('features');
84
+ global.FEATURES = features;
83
85
 
84
86
  var fullOptions = _objectSpread(_objectSpread({}, options), {}, {
85
87
  presets: presets,
@@ -29,6 +29,7 @@ import cpy from 'cpy';
29
29
  import fs from 'fs-extra';
30
30
  import path from 'path';
31
31
  import dedent from 'ts-dedent';
32
+ import global from 'global';
32
33
  import { logger } from '@storybook/node-logger';
33
34
  import { loadAllPresets, cache, normalizeStories, logConfig } from '@storybook/core-common';
34
35
  import { getProdCli } from './cli';
@@ -92,6 +93,7 @@ export async function buildStaticStandalone(options) {
92
93
  }
93
94
 
94
95
  var features = await presets.apply('features');
96
+ global.FEATURES = features;
95
97
 
96
98
  if (features !== null && features !== void 0 && features.buildStoriesJson || features !== null && features !== void 0 && features.storyStoreV7) {
97
99
  var directories = {
@@ -22,6 +22,7 @@ import { logger, instance as npmLog } from '@storybook/node-logger';
22
22
  import { resolvePathInStorybookCache, loadAllPresets, cache } from '@storybook/core-common';
23
23
  import dedent from 'ts-dedent';
24
24
  import prompts from 'prompts';
25
+ import global from 'global';
25
26
  import path from 'path';
26
27
  import { storybookDevServer } from './dev-server';
27
28
  import { getDevCli } from './cli';
@@ -80,6 +81,7 @@ export async function buildDevStandalone(options) {
80
81
  overridePresets: previewBuilder.overridePresets
81
82
  }, options));
82
83
  var features = await presets.apply('features');
84
+ global.FEATURES = features;
83
85
 
84
86
  var fullOptions = _objectSpread(_objectSpread({}, options), {}, {
85
87
  presets: presets,
@@ -29,6 +29,7 @@ import cpy from 'cpy';
29
29
  import fs from 'fs-extra';
30
30
  import path from 'path';
31
31
  import dedent from 'ts-dedent';
32
+ import global from 'global';
32
33
  import { logger } from '@storybook/node-logger';
33
34
  import { loadAllPresets, cache, normalizeStories, logConfig } from '@storybook/core-common';
34
35
  import { getProdCli } from './cli';
@@ -92,6 +93,7 @@ export async function buildStaticStandalone(options) {
92
93
  }
93
94
 
94
95
  var features = await presets.apply('features');
96
+ global.FEATURES = features;
95
97
 
96
98
  if (features !== null && features !== void 0 && features.buildStoriesJson || features !== null && features !== void 0 && features.storyStoreV7) {
97
99
  var directories = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/core-server",
3
- "version": "6.5.0-alpha.41",
3
+ "version": "6.5.0-alpha.44",
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.41",
44
- "@storybook/core-client": "6.5.0-alpha.41",
45
- "@storybook/core-common": "6.5.0-alpha.41",
46
- "@storybook/core-events": "6.5.0-alpha.41",
43
+ "@storybook/builder-webpack4": "6.5.0-alpha.44",
44
+ "@storybook/core-client": "6.5.0-alpha.44",
45
+ "@storybook/core-common": "6.5.0-alpha.44",
46
+ "@storybook/core-events": "6.5.0-alpha.44",
47
47
  "@storybook/csf": "0.0.2--canary.87bc651.0",
48
- "@storybook/csf-tools": "6.5.0-alpha.41",
49
- "@storybook/manager-webpack4": "6.5.0-alpha.41",
50
- "@storybook/node-logger": "6.5.0-alpha.41",
48
+ "@storybook/csf-tools": "6.5.0-alpha.44",
49
+ "@storybook/manager-webpack4": "6.5.0-alpha.44",
50
+ "@storybook/node-logger": "6.5.0-alpha.44",
51
51
  "@storybook/semver": "^7.3.2",
52
- "@storybook/store": "6.5.0-alpha.41",
52
+ "@storybook/store": "6.5.0-alpha.44",
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",
@@ -65,6 +65,7 @@
65
65
  "detect-port": "^1.3.0",
66
66
  "express": "^4.17.1",
67
67
  "fs-extra": "^9.0.1",
68
+ "global": "^4.4.0",
68
69
  "globby": "^11.0.2",
69
70
  "ip": "^1.1.5",
70
71
  "lodash": "^4.17.21",
@@ -84,7 +85,7 @@
84
85
  "x-default-browser": "^0.4.0"
85
86
  },
86
87
  "devDependencies": {
87
- "@storybook/builder-webpack5": "6.5.0-alpha.41",
88
+ "@storybook/builder-webpack5": "6.5.0-alpha.44",
88
89
  "@types/compression": "^1.7.0",
89
90
  "@types/ip": "^1.1.0",
90
91
  "@types/serve-favicon": "^2.5.2",
@@ -109,6 +110,6 @@
109
110
  "publishConfig": {
110
111
  "access": "public"
111
112
  },
112
- "gitHead": "10663a4c9ea6c04a04047b5bb22254d6b64201c2",
113
+ "gitHead": "0125cb2b688dc1acca71a7fbf2795466fd55c0e3",
113
114
  "sbmodern": "dist/modern/index.js"
114
115
  }