Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release: Prerelease 7.4.0-alpha.2 #23926

Merged
merged 84 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
d2b156d
add bottom slot to sidebar
ndelangen Aug 9, 2023
0f4e59f
add implementation
ndelangen Aug 9, 2023
f541744
Merge branch 'norbert/sidebar-filter-api' into norbert/add-sidebar-fo…
ndelangen Aug 10, 2023
f2b6e01
rename to `experimental_SIDEBAR_BOTTOM`
ndelangen Aug 10, 2023
495b68f
Merge branch 'norbert/sidebar-filter-api' into norbert/add-sidebar-fo…
ndelangen Aug 11, 2023
b28af4d
continue rename
ndelangen Aug 11, 2023
c47ca14
add the new type
ndelangen Aug 11, 2023
ce7c1bf
inject the components into the sidebar top
ndelangen Aug 11, 2023
913f192
improve types
ndelangen Aug 11, 2023
14545fd
Merge branch 'norbert/add-sidebar-footer-slot' into norbert/add-sideb…
ndelangen Aug 11, 2023
73bac45
Links and snippets updates
jonniebigodes Aug 14, 2023
49f4707
Clean up docs and snippet files
jonniebigodes Aug 18, 2023
7a995f2
detect empty projects and provide an error message for users
yannbf Aug 17, 2023
d2db9f2
update init on empty directory message
yannbf Aug 21, 2023
ff7477e
Revert "Maintenance: Revert "WebpackBuilder: Remove need for `react` …
ndelangen Aug 21, 2023
78c2d88
refactor
ndelangen Aug 21, 2023
8ec2708
Update code/ui/.storybook/manager.tsx
ndelangen Aug 21, 2023
10a3143
Merge branch 'norbert/sidebar-filter-api' into norbert/add-sidebar-fo…
ndelangen Aug 21, 2023
3b11a34
add loading state
ndelangen Aug 21, 2023
f866f78
force the brand area to not overflow the header
ndelangen Aug 21, 2023
809114e
fix stories
ndelangen Aug 21, 2023
2fb57f0
Merge branch 'next' into yann/improve-empty-dir-init-message
yannbf Aug 21, 2023
a111e7a
fixes
ndelangen Aug 21, 2023
8a9a013
Merge branch 'norbert/add-sidebar-footer-slot' into norbert/add-sideb…
ndelangen Aug 21, 2023
cdaae1d
Pass options to postinstall script
Aug 21, 2023
efd4ed0
Add postinstall script for addon-themes
Aug 21, 2023
7f367f7
replace generic errors with categorized ones
yannbf Aug 22, 2023
f577679
Don't add caret if version isn't semver
Aug 22, 2023
af50245
fix test
yannbf Aug 22, 2023
ad2d439
add override presets for framework presets
yannbf Aug 22, 2023
44cfbe1
Merge branch 'next' into norbert/add-sidebar-footer-slot
ndelangen Aug 22, 2023
f5a469b
Merge branch 'next' into yann/add-framework-preset-to-every-framework
yannbf Aug 22, 2023
a9ecaf7
remove the layout shifts
ndelangen Aug 22, 2023
d4c682a
Merge branch 'norbert/add-sidebar-footer-slot' into norbert/add-sideb…
ndelangen Aug 22, 2023
4f94222
no more double error messages
ndelangen Aug 22, 2023
2ed74d9
cleanup
ndelangen Aug 22, 2023
5ba01b5
fix tying issue
ndelangen Aug 22, 2023
b8dbbd2
adjust story so it only shows 1 theme, otherwise it doesn't show the …
ndelangen Aug 22, 2023
0e2d8a6
Merge branch 'norbert/add-sidebar-footer-slot' into norbert/add-sideb…
ndelangen Aug 22, 2023
7fa2804
fix existing test and add test for errors
ndelangen Aug 22, 2023
5c95bff
cleanup
ndelangen Aug 22, 2023
6889787
Merge pull request #23915 from storybookjs/yann/add-framework-preset-…
yannbf Aug 23, 2023
a85f652
Merge pull request #23912 from storybookjs/yann/categorize-errors-mai…
yannbf Aug 23, 2023
7e135d2
Update code/lib/node-logger/src/index.ts
ndelangen Aug 23, 2023
f0fe293
Merge branch 'next-release' into next
storybook-bot Aug 23, 2023
b8ca208
make the footer "sticky"
ndelangen Aug 23, 2023
cb7dc75
Add postinstall to exports map
Aug 23, 2023
45573ae
Merge branch 'next' into shaun/pass-package-manager
Aug 23, 2023
fa3b4d8
Merge branch 'next' into norbert/add-sidebar-footer-slot
ndelangen Aug 23, 2023
21098e4
Merge branch 'norbert/add-sidebar-footer-slot' into norbert/add-sideb…
ndelangen Aug 23, 2023
0302088
fix the scrollbar overlaying the footer
ndelangen Aug 23, 2023
d3c4b6e
Merge branch 'norbert/add-sidebar-footer-slot' into norbert/add-sideb…
ndelangen Aug 23, 2023
7830782
Merge pull request #23919 from storybookjs/norbert/improve-node-logge…
ndelangen Aug 23, 2023
937473b
fix vue generators
yannbf Aug 23, 2023
8106354
Fix #23903
kasperpeulen Aug 24, 2023
02e058a
do not generate sourcemaps for manager related code, not for prebuild…
ndelangen Aug 24, 2023
556c148
Discard changes to code/lib/cli/src/dev.ts
ndelangen Aug 24, 2023
279ac58
Discard changes to code/lib/core-server/src/build-dev.ts
ndelangen Aug 24, 2023
9bdffe1
Merge pull request #23936 from storybookjs/norbert/no-sourcemaps-for-…
yannbf Aug 24, 2023
0d1960e
Merge pull request #23935 from storybookjs/kasper/23903
kasperpeulen Aug 24, 2023
86e342c
Merge pull request #23874 from storybookjs/yann/improve-empty-dir-ini…
yannbf Aug 24, 2023
6a20ecc
Merge branch 'next' into revert-23882-revert-23496-norbert/react-peer…
ndelangen Aug 24, 2023
dfe41f7
Merge pull request #23897 from storybookjs/revert-23882-revert-23496-…
ndelangen Aug 24, 2023
06c554e
add a require.resolve
ndelangen Aug 24, 2023
1f18e29
Merge pull request #23778 from storybookjs/norbert/add-sidebar-footer…
ndelangen Aug 24, 2023
50bbc54
Merge branch 'next' into norbert/fix-23217
ndelangen Aug 24, 2023
c1044d6
Merge pull request #23811 from storybookjs/norbert/add-sidebar-top-slot
ndelangen Aug 24, 2023
c93d607
Use SemVer
Aug 24, 2023
ad7b476
add require.resolve around other places as well.
ndelangen Aug 24, 2023
b753038
Merge branch 'norbert/fix-23217' of github.com:storybookjs/storybook …
ndelangen Aug 24, 2023
67447cc
Merge branch 'next' into shaun/pass-package-manager
Aug 24, 2023
3026181
pack into a packs directory and publish from there
ndelangen Aug 25, 2023
ccad64a
Merge branch 'next' into norbert/fix-23217
ndelangen Aug 25, 2023
bd55608
Merge branch 'norbert/fix-no-linking-publish' into norbert/fix-23217
ndelangen Aug 25, 2023
18436a9
Update scripts/utils/constants.ts
ndelangen Aug 25, 2023
1d1fb50
Merge pull request #23948 from storybookjs/norbert/fix-no-linking-pub…
ndelangen Aug 25, 2023
8f1ed07
allow mjs files & externalize @storybook/global
ndelangen Aug 25, 2023
b9a9584
Merge branch 'next' into shaun/pass-package-manager
Aug 25, 2023
4d49fba
Fix linting errors
Aug 25, 2023
f83212b
CLI: Pass package manager to postinstall #23913
Aug 25, 2023
67d84c8
Merge pull request #23941 from storybookjs/norbert/fix-23217
ndelangen Aug 25, 2023
e6beb8e
Merge branch 'next' into docs_adds_conditional_render_write_stories
jonniebigodes Aug 25, 2023
14cb60a
Merge pull request #23892 from storybookjs/docs_adds_conditional_rend…
jonniebigodes Aug 25, 2023
abbec4e
Write changelog for 7.4.0-alpha.2
storybook-bot Aug 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@ code/playwright-results/
code/playwright-report/
code/playwright/.cache/
code/bench-results/

/packs
14 changes: 14 additions & 0 deletions CHANGELOG.prerelease.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## 7.4.0-alpha.2

- Addon-docs: Resolve `mdx-react-shim` & `@storybook/global` correctly - [#23941](https://github.com/storybookjs/storybook/pull/23941), thanks [@ndelangen](https://github.com/ndelangen)!
- Addons: Fix key is not a prop warning - [#23935](https://github.com/storybookjs/storybook/pull/23935), thanks [@kasperpeulen](https://github.com/kasperpeulen)!
- CLI: Pass package manager to postinstall - [#23913](https://github.com/storybookjs/storybook/pull/23913), thanks [@Integrayshaun](https://github.com/Integrayshaun)!
- CLI: Provide guidance for users who try to initialize Storybook on an empty dir - [#23874](https://github.com/storybookjs/storybook/pull/23874), thanks [@yannbf](https://github.com/yannbf)!
- Logger: Fix double error messages/stack - [#23919](https://github.com/storybookjs/storybook/pull/23919), thanks [@ndelangen](https://github.com/ndelangen)!
- Maintenance: Categorize server errors - [#23912](https://github.com/storybookjs/storybook/pull/23912), thanks [@yannbf](https://github.com/yannbf)!
- Maintenance: Remove need for `react` as peerDependency - [#23897](https://github.com/storybookjs/storybook/pull/23897), thanks [@ndelangen](https://github.com/ndelangen)!
- Maintenance: Remove sourcemaps generation - [#23936](https://github.com/storybookjs/storybook/pull/23936), thanks [@ndelangen](https://github.com/ndelangen)!
- Preset: Add common preset overrides mechanism - [#23915](https://github.com/storybookjs/storybook/pull/23915), thanks [@yannbf](https://github.com/yannbf)!
- UI: Add an experimental API for adding sidebar bottom toolbar - [#23778](https://github.com/storybookjs/storybook/pull/23778), thanks [@ndelangen](https://github.com/ndelangen)!
- UI: Add an experimental API for adding sidebar top toolbar - [#23811](https://github.com/storybookjs/storybook/pull/23811), thanks [@ndelangen](https://github.com/ndelangen)!

## 7.4.0-alpha.1

- Build: Migrate @storybook/scripts to strict-ts - [#23818](https://github.com/storybookjs/storybook/pull/23818), thanks [@stilt0n](https://github.com/stilt0n)!
Expand Down
6 changes: 5 additions & 1 deletion code/addons/docs/src/preset.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import fs from 'fs-extra';
import { dirname, join } from 'path';
import remarkSlug from 'remark-slug';
import remarkExternalLinks from 'remark-external-links';
import { dedent } from 'ts-dedent';
Expand Down Expand Up @@ -50,7 +51,10 @@ async function webpack(
skipCsf: true,
...mdxPluginOptions,
mdxCompileOptions: {
providerImportSource: '@storybook/addon-docs/mdx-react-shim',
providerImportSource: join(
dirname(require.resolve('@storybook/addon-docs/package.json')),
'/dist/shims/mdx-react-shim'
),
...mdxPluginOptions.mdxCompileOptions,
remarkPlugins: [remarkSlug, remarkExternalLinks].concat(
mdxPluginOptions?.mdxCompileOptions?.remarkPlugins ?? []
Expand Down
9 changes: 7 additions & 2 deletions code/addons/essentials/src/docs/preset.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
/* eslint-disable import/export */
import { dirname, join } from 'path';

// eslint-disable-next-line import/export
export * from '@storybook/addon-docs/dist/preset';

export const mdxLoaderOptions = async (config: any) => {
// eslint-disable-next-line no-param-reassign
config.mdxCompileOptions.providerImportSource = '@storybook/addon-essentials/docs/mdx-react-shim';
config.mdxCompileOptions.providerImportSource = join(
dirname(require.resolve('@storybook/addon-docs/package.json')),
'/dist/shims/mdx-react-shim'
);
return config;
};
3 changes: 2 additions & 1 deletion code/addons/themes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"require": "./dist/preview.js",
"import": "./dist/preview.mjs"
},
"./package.json": "./package.json"
"./package.json": "./package.json",
"./postinstall": "./postinstall.js"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
17 changes: 17 additions & 0 deletions code/addons/themes/postinstall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const { spawn } = require('child_process');

const PACKAGE_MANAGER_TO_COMMAND = {
npm: 'npx',
yarn1: 'yarn dlx',
yarn2: 'yarn dlx',
pnpm: 'pnpm dlx',
};

module.exports = function postinstall(options) {
const command = PACKAGE_MANAGER_TO_COMMAND[options.packageManager];

spawn(command, ['@storybook/auto-config', 'themes'], {
stdio: 'inherit',
cwd: process.cwd(),
});
};
2 changes: 1 addition & 1 deletion code/builders/builder-manager/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const getConfig: ManagerBuilder['getConfig'] = async (options) => {
platform: 'browser',
bundle: true,
minify: true,
sourcemap: true,
sourcemap: false,
conditions: ['browser', 'module', 'default'],

jsxFactory: 'React.createElement',
Expand Down
6 changes: 5 additions & 1 deletion code/builders/builder-vite/src/plugins/mdx-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { Plugin } from 'vite';
import remarkSlug from 'remark-slug';
import remarkExternalLinks from 'remark-external-links';
import { createFilter } from 'vite';
import { dirname, join } from 'path';

const isStorybookMdx = (id: string) => id.endsWith('stories.mdx') || id.endsWith('story.mdx');

Expand Down Expand Up @@ -33,7 +34,10 @@ export async function mdxPlugin(options: Options): Promise<Plugin> {
const mdxLoaderOptions = await options.presets.apply('mdxLoaderOptions', {
...mdxPluginOptions,
mdxCompileOptions: {
providerImportSource: '@storybook/addon-docs/mdx-react-shim',
providerImportSource: join(
dirname(require.resolve('@storybook/addon-docs/package.json')),
'/dist/shims/mdx-react-shim'
),
...mdxPluginOptions?.mdxCompileOptions,
remarkPlugins: [remarkSlug, remarkExternalLinks].concat(
mdxPluginOptions?.mdxCompileOptions?.remarkPlugins ?? []
Expand Down
14 changes: 1 addition & 13 deletions code/builders/builder-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,15 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@babel/core": "^7.22.9",
"@storybook/addons": "workspace:*",
"@babel/core": "^7.22.0",
"@storybook/channels": "workspace:*",
"@storybook/client-api": "workspace:*",
"@storybook/client-logger": "workspace:*",
"@storybook/components": "workspace:*",
"@storybook/core-common": "workspace:*",
"@storybook/core-events": "workspace:*",
"@storybook/core-webpack": "workspace:*",
"@storybook/global": "^5.0.0",
"@storybook/manager-api": "workspace:*",
"@storybook/node-logger": "workspace:*",
"@storybook/preview": "workspace:*",
"@storybook/preview-api": "workspace:*",
"@storybook/router": "workspace:*",
"@storybook/store": "workspace:*",
"@storybook/theming": "workspace:*",
"@swc/core": "^1.3.49",
"@types/node": "^16.0.0",
"@types/semver": "^7.3.4",
Expand Down Expand Up @@ -110,10 +102,6 @@
"slash": "^5.0.0",
"typescript": "~4.9.3"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
Expand Down
43 changes: 27 additions & 16 deletions code/builders/builder-webpack5/src/preview/iframe-webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,35 @@ import { createBabelLoader, createSWCLoader } from './loaders';

const getAbsolutePath = <I extends string>(input: I): I =>
dirname(require.resolve(join(input, 'package.json'))) as any;
const maybeGetAbsolutePath = <I extends string>(input: I): I | false => {
try {
return getAbsolutePath(input);
} catch (e) {
return false;
}
};

const managerAPIPath = maybeGetAbsolutePath(`@storybook/manager-api`);
const componentsPath = maybeGetAbsolutePath(`@storybook/components`);
const globalPath = maybeGetAbsolutePath(`@storybook/global`);
const routerPath = maybeGetAbsolutePath(`@storybook/router`);
const themingPath = maybeGetAbsolutePath(`@storybook/theming`);

// these packages are not pre-bundled because of react dependencies.
// these are not dependencies of the builder anymore, thus resolving them can fail.
// we should remove the aliases in 8.0, I'm not sure why they are here in the first place.
const storybookPaths: Record<string, string> = {
...[
// these packages are not pre-bundled because of react dependencies
'components',
'global',
'manager-api',
'router',
'theming',
].reduce(
(acc, sbPackage) => ({
...acc,
[`@storybook/${sbPackage}`]: getAbsolutePath(`@storybook/${sbPackage}`),
}),
{}
),
// deprecated, remove in 8.0
[`@storybook/api`]: getAbsolutePath(`@storybook/manager-api`),
...(managerAPIPath
? {
// deprecated, remove in 8.0
[`@storybook/api`]: managerAPIPath,
[`@storybook/manager-api`]: managerAPIPath,
}
: {}),
...(componentsPath ? { [`@storybook/components`]: componentsPath } : {}),
...(globalPath ? { [`@storybook/global`]: globalPath } : {}),
...(routerPath ? { [`@storybook/router`]: routerPath } : {}),
...(themingPath ? { [`@storybook/theming`]: themingPath } : {}),
};

export default async (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const printErrorDetails = (error: any): void => {
} else if ((error as any).stats && (error as any).stats.compilation.errors) {
(error as any).stats.compilation.errors.forEach((e: any) => logger.plain(e));
} else {
logger.error(error as any);
logger.error(error);
}
} else if (error.compilation?.errors) {
error.compilation.errors.forEach((e: any) => logger.plain(e));
Expand Down
15 changes: 11 additions & 4 deletions code/lib/cli/src/add.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { getStorybookInfo } from '@storybook/core-common';
import { readConfig, writeConfig } from '@storybook/csf-tools';
import SemVer from 'semver';

import {
JsPackageManagerFactory,
Expand All @@ -10,15 +11,19 @@ import { getStorybookVersion } from './utils';

const logger = console;

const postinstallAddon = async (addonName: string) => {
interface PostinstallOptions {
packageManager: PackageManagerName;
}

const postinstallAddon = async (addonName: string, options: PostinstallOptions) => {
try {
const modulePath = require.resolve(`${addonName}/postinstall`, { paths: [process.cwd()] });
// eslint-disable-next-line import/no-dynamic-require, global-require
const postinstall = require(modulePath);

try {
logger.log(`Running postinstall script for ${addonName}`);
await postinstall();
await postinstall(options);
} catch (e) {
logger.error(`Error running postinstall script for ${addonName}`);
logger.error(e);
Expand Down Expand Up @@ -73,7 +78,9 @@ export async function add(
const isStorybookAddon = addonName.startsWith('@storybook/');
const storybookVersion = await getStorybookVersion(packageManager);
const version = versionSpecifier || (isStorybookAddon ? storybookVersion : latestVersion);
const addonWithVersion = `${addonName}@^${version}`;
const addonWithVersion = SemVer.valid(version)
? `${addonName}@^${version}`
: `${addonName}@${version}`;
logger.log(`Installing ${addonWithVersion}`);
await packageManager.addDependencies({ installAsDevDependencies: true }, [addonWithVersion]);

Expand All @@ -83,6 +90,6 @@ export async function add(
await writeConfig(main);

if (!options.skipPostinstall && isStorybookAddon) {
await postinstallAddon(addonName);
await postinstallAddon(addonName, { packageManager: pkgMgr });
}
}
28 changes: 18 additions & 10 deletions code/lib/cli/src/detect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
} from './project_types';
import { commandLog, isNxProject } from './helpers';
import type { JsPackageManager, PackageJsonWithMaybeDeps } from './js-package-manager';
import { HandledError } from './HandledError';

const viteConfigFiles = ['vite.config.ts', 'vite.config.js', 'vite.config.mjs'];
const webpackConfigFiles = ['webpack.config.js'];
Expand Down Expand Up @@ -135,16 +136,23 @@ export async function detectBuilder(packageManager: JsPackageManager, projectTyp
return CoreBuilder.Webpack5;
default:
// eslint-disable-next-line no-case-declarations
const { builder } = await prompts({
type: 'select',
name: 'builder',
message:
'We were not able to detect the right builder for your project. Please select one:',
choices: [
{ title: 'Vite', value: CoreBuilder.Vite },
{ title: 'Webpack 5', value: CoreBuilder.Webpack5 },
],
});
const { builder } = await prompts(
{
type: 'select',
name: 'builder',
message:
'\nWe were not able to detect the right builder for your project. Please select one:',
choices: [
{ title: 'Vite', value: CoreBuilder.Vite },
{ title: 'Webpack 5', value: CoreBuilder.Webpack5 },
],
},
{
onCancel: () => {
throw new HandledError('Canceled by the user');
},
}
);

return builder;
}
Expand Down
25 changes: 16 additions & 9 deletions code/lib/cli/src/generators/EMBER/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
import { CoreBuilder } from '../../project_types';
import { baseGenerator } from '../baseGenerator';
import type { Generator } from '../types';

const generator: Generator = async (packageManager, npmOptions, options) => {
await baseGenerator(packageManager, npmOptions, options, 'ember', {
extraPackages: [
// babel-plugin-ember-modules-api-polyfill is a peerDep of @storybook/ember
'babel-plugin-ember-modules-api-polyfill',
// babel-plugin-htmlbars-inline-precompile is a peerDep of @storybook/ember
'babel-plugin-htmlbars-inline-precompile',
],
staticDir: 'dist',
});
await baseGenerator(
packageManager,
npmOptions,
{ ...options, builder: CoreBuilder.Webpack5 },
'ember',
{
extraPackages: [
// babel-plugin-ember-modules-api-polyfill is a peerDep of @storybook/ember
'babel-plugin-ember-modules-api-polyfill',
// babel-plugin-htmlbars-inline-precompile is a peerDep of @storybook/ember
'babel-plugin-htmlbars-inline-precompile',
],
staticDir: 'dist',
}
);
};

export default generator;
3 changes: 2 additions & 1 deletion code/lib/cli/src/generators/NEXTJS/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { CoreBuilder } from '../../project_types';
import { baseGenerator } from '../baseGenerator';
import type { Generator } from '../types';

const generator: Generator = async (packageManager, npmOptions, options) => {
await baseGenerator(
packageManager,
npmOptions,
options,
{ ...options, builder: CoreBuilder.Webpack5 },
'react',
{
extraAddons: ['@storybook/addon-onboarding'],
Expand Down
Loading