File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
scopes/dependencies/dependency-resolver Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -572,8 +572,14 @@ export class DependencyResolverMain {
572572 }
573573 ) {
574574 const envId = this . envs . getEnvId ( component ) ;
575+ const envIdWithoutVersion = ComponentID . fromString ( envId ) . toStringWithoutVersion ( ) ;
575576 const rootComponentsRelativePath = relative ( options . workspacePath , options . rootComponentsPath ) ;
576- return getRootComponentDir ( rootComponentsRelativePath ?? '' , envId ) ;
577+ const rootComponentDirWithVersion = getRootComponentDir ( rootComponentsRelativePath ?? '' , envId ) ;
578+ const rootComponentDirWithoutVersion = getRootComponentDir ( rootComponentsRelativePath ?? '' , envIdWithoutVersion ) ;
579+ if ( fs . pathExistsSync ( rootComponentDirWithoutVersion ) ) {
580+ return rootComponentDirWithoutVersion ;
581+ }
582+ return rootComponentDirWithVersion ;
577583 }
578584
579585 /**
You can’t perform that action at this time.
0 commit comments