@teambit/workspace 1.0.507 → 1.0.508
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.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_workspace_workspace-preview.js +1 -1
- package/artifacts/schema.json +129 -129
- package/dist/{preview-1736392719731.js → preview-1736535915537.js} +2 -2
- package/dist/workspace.js +4 -2
- package/dist/workspace.js.map +1 -1
- package/package.json +43 -43
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.508/dist/workspace.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.508/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
|
@@ -2077,7 +2077,7 @@ the following envs are used in this workspace: ${availableEnvs.join(', ')}`);
|
|
|
2077
2077
|
}
|
|
2078
2078
|
async updateEnvForComponents(envIdStr, pattern) {
|
|
2079
2079
|
const allWsComps = await this.list();
|
|
2080
|
-
const allWsIds =
|
|
2080
|
+
const allWsIds = this.listIds();
|
|
2081
2081
|
const isInWs = envId => allWsIds.find(id => id.isEqual(envId, {
|
|
2082
2082
|
ignoreVersion: true
|
|
2083
2083
|
}));
|
|
@@ -2085,8 +2085,10 @@ the following envs are used in this workspace: ${availableEnvs.join(', ')}`);
|
|
|
2085
2085
|
const getEnvWithVersion = async envId => {
|
|
2086
2086
|
if (envId.hasVersion()) return envId;
|
|
2087
2087
|
if (isInWs(envId)) return envId;
|
|
2088
|
+
const currentLane = await this.getCurrentLaneObject();
|
|
2089
|
+
const isDeletedOnLane = currentLane && currentLane.getComponent(envId)?.isDeleted;
|
|
2088
2090
|
try {
|
|
2089
|
-
const fromRemote = await this.scope.getRemoteComponent(envId);
|
|
2091
|
+
const fromRemote = await this.scope.getRemoteComponent(envId, isDeletedOnLane);
|
|
2090
2092
|
return envId.changeVersion(fromRemote.id.version);
|
|
2091
2093
|
} catch {
|
|
2092
2094
|
throw new (_bitError().BitError)(`unable to find ${envIdStr} in the remote`);
|