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

CLI: Improve vite-config-file.ts #26375

Merged
merged 4 commits into from
Mar 12, 2024
Merged
Changes from 3 commits
Commits
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
6 changes: 3 additions & 3 deletions code/lib/cli/src/automigrate/fixes/vite-config-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ export const viteConfigFile = {
prompt({ existed, plugins }) {
if (existed) {
return dedent`
Since version 8.0.0, Storybook no longer ships with a Vite config build-in.
Since version 8.0.0, Storybook no longer ships with an in-built Vite config.
We've detected you do have a Vite config, but you may be missing the following plugins in it.

${plugins.map((plugin) => ` - ${plugin}`).join('\n')}

If you do already have these plugins, you can ignore this message.
If you already have these plugins, you can ignore this message.

You can find more information on how to do this here:
https://storybook.js.org/docs/8.0/migration-guide/#missing-viteconfigjs-file
Expand All @@ -111,7 +111,7 @@ export const viteConfigFile = {
`;
}
return dedent`
Since version 8.0.0, Storybook no longer ships with a Vite config build-in.
Since version 8.0.0, Storybook no longer ships with a built-in Vite config.
ndelangen marked this conversation as resolved.
Show resolved Hide resolved
Please add a vite.config.js file to your project root.

You can find more information on how to do this here:
Expand Down
Loading