@teambit/workspace 1.0.1229 → 1.0.1231

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.1229/dist/workspace.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.1229/dist/workspace.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.1231/dist/workspace.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.1231/dist/workspace.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/dist/workspace.js CHANGED
@@ -2408,17 +2408,7 @@ the following envs are used in this workspace: ${(0, _lodash().uniq)(availableEn
2408
2408
  }
2409
2409
  async resolveEnvManifest(envId, envExtendsDeps = []) {
2410
2410
  if (this.aspectLoader.isCoreEnv(envId)) return {};
2411
- const splitted = envId.split('@');
2412
- const envIdWithVersion = envId.startsWith('@') ? `@${splitted[1]}` : splitted[0];
2413
- const foundEnv = envExtendsDeps.find(dep => dep.id.toStringWithoutVersion() === envIdWithVersion || dep.packageName === envIdWithVersion);
2414
- let id = envId;
2415
- if (foundEnv?.id) {
2416
- if (foundEnv.id.version.includes('-new')) {
2417
- id = foundEnv.id.toStringWithoutVersion();
2418
- } else {
2419
- id = foundEnv.id.toString();
2420
- }
2421
- }
2411
+ const id = this.envs.getParentEnvIdToLoad(envId, envExtendsDeps);
2422
2412
  const resolvedEnvComponentId = await this.resolveComponentId(id);
2423
2413
 
2424
2414
  // We need to load the env component with the slot and extensions to get the env manifest of the parent