File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
code/lib/cli-storybook/src/doctor Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ export const checkPackageCompatibility = async (
58
58
// prevent issues with "tag" based versions e.g. "latest" or "next" instead of actual numbers
59
59
return (
60
60
versionRange &&
61
+ // We can't check compatibility for 0.x packages, so we skip them
62
+ ! / ^ [ ~ ^ ] ? 0 \. / . test ( versionRange ) &&
61
63
semver . validRange ( versionRange ) &&
62
64
! semver . satisfies ( currentStorybookVersion , versionRange )
63
65
) ;
@@ -101,6 +103,11 @@ export const checkPackageCompatibility = async (
101
103
export const getIncompatibleStorybookPackages = async (
102
104
context : Context
103
105
) : Promise < AnalysedPackage [ ] > => {
106
+ if ( context . currentStorybookVersion . includes ( '0.0.0' ) ) {
107
+ // We can't know if a Storybook canary version is compatible with other packages, so we skip it
108
+ return [ ] ;
109
+ }
110
+
104
111
const allDeps = context . packageManager . getAllDependencies ( ) ;
105
112
const storybookLikeDeps = Object . keys ( allDeps ) . filter ( ( dep ) => dep . includes ( 'storybook' ) ) ;
106
113
if ( storybookLikeDeps . length === 0 && ! context . skipErrors ) {
You can’t perform that action at this time.
0 commit comments