Skip to content

Commit f591a66

Browse files
GiladShohamCopilot
andauthored
Update scopes/dependencies/dependency-resolver/dependency-resolver.main.runtime.ts
Co-authored-by: Copilot <[email protected]>
1 parent 2407459 commit f591a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scopes/dependencies/dependency-resolver/dependency-resolver.main.runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ export class DependencyResolverMain {
572572
}
573573
) {
574574
const envId = this.envs.getEnvId(component);
575-
const envIdWithoutVersion = envId.split('@')[0];
575+
const envIdWithoutVersion = ComponentID.fromString(envId).toStringWithoutVersion();
576576
const rootComponentsRelativePath = relative(options.workspacePath, options.rootComponentsPath);
577577
const rootComponentDirWithVersion = getRootComponentDir(rootComponentsRelativePath ?? '', envId);
578578
const rootComponentDirWithoutVersion = getRootComponentDir(rootComponentsRelativePath ?? '', envIdWithoutVersion);

0 commit comments

Comments
 (0)