mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
Only add @chromatic-com/storybook (VTA) if test feature is selected
This commit is contained in:
parent
762d67b22a
commit
326ff0a574
@ -280,7 +280,9 @@ export async function baseGenerator(
|
||||
: extraAddonPackages;
|
||||
|
||||
// TODO: change the semver range to '^4' when VTA 4 and SB 9 is released
|
||||
extraAddonsToInstall.push('@chromatic-com/storybook@^4.0.0-0');
|
||||
if (features.includes('test')) {
|
||||
extraAddonsToInstall.push('@chromatic-com/storybook@^4.0.0-0');
|
||||
}
|
||||
|
||||
// Add @storybook/addon-docs when docs feature is selected
|
||||
if (features.includes('docs')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user