Merge branch 'tom/sb-849-cant-run-the-v6-store-in-sandboxes-2' into tom/sb-732-docs2-support-docs-only-stories-in-v6

This commit is contained in:
Tom Coleman 2022-10-25 13:11:23 +11:00
commit b602e3393e
3 changed files with 4 additions and 3 deletions

View File

@ -68,7 +68,6 @@ export default async (
serverChannelUrl, serverChannelUrl,
} = options; } = options;
const frameworkName = await getFrameworkName(options);
const frameworkOptions = await presets.apply('frameworkOptions'); const frameworkOptions = await presets.apply('frameworkOptions');
const isProd = configType === 'PRODUCTION'; const isProd = configType === 'PRODUCTION';

View File

@ -12,6 +12,7 @@ import {
cache, cache,
loadMainConfig, loadMainConfig,
validateFrameworkName, validateFrameworkName,
resolveAddonName,
} from '@storybook/core-common'; } from '@storybook/core-common';
import prompts from 'prompts'; import prompts from 'prompts';
import global from 'global'; import global from 'global';
@ -90,7 +91,7 @@ export async function buildDevStandalone(options: CLIOptions & LoadOptions & Bui
require.resolve('./presets/common-preset'), require.resolve('./presets/common-preset'),
...(managerBuilder.corePresets || []), ...(managerBuilder.corePresets || []),
...(previewBuilder.corePresets || []), ...(previewBuilder.corePresets || []),
...(renderer ? [renderer] : []), ...(renderer ? [resolveAddonName(options.configDir, renderer, options)] : []),
...corePresets, ...corePresets,
require.resolve('./presets/babel-cache-preset'), require.resolve('./presets/babel-cache-preset'),
], ],

View File

@ -20,6 +20,7 @@ import {
normalizeStories, normalizeStories,
logConfig, logConfig,
loadMainConfig, loadMainConfig,
resolveAddonName,
} from '@storybook/core-common'; } from '@storybook/core-common';
import { outputStats } from './utils/output-stats'; import { outputStats } from './utils/output-stats';
@ -84,7 +85,7 @@ export async function buildStaticStandalone(
require.resolve('./presets/common-preset'), require.resolve('./presets/common-preset'),
...(managerBuilder.corePresets || []), ...(managerBuilder.corePresets || []),
...(previewBuilder.corePresets || []), ...(previewBuilder.corePresets || []),
...(renderer ? [renderer] : []), ...(renderer ? [resolveAddonName(options.configDir, renderer, options)] : []),
...corePresets, ...corePresets,
require.resolve('./presets/babel-cache-preset'), require.resolve('./presets/babel-cache-preset'),
], ],