@teambit/workspace 1.0.499 → 1.0.500

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.499/dist/workspace.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.499/dist/workspace.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.500/dist/workspace.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.500/dist/workspace.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -130,6 +130,11 @@ export declare class Workspace implements ComponentFactory {
130
130
  * This is important to know to ignore missing modules across different places
131
131
  */
132
132
  inInstallContext: boolean;
133
+ /**
134
+ * Indicate that we done with the package manager installation process
135
+ * This is important to skip stuff when package manager install is not done yet
136
+ */
137
+ inInstallAfterPmContext: boolean;
133
138
  private componentLoadedSelfAsAspects;
134
139
  private aspectsMerger;
135
140
  private componentDefaultScopeFromComponentDirAndNameWithoutConfigFileMemoized;
@@ -309,6 +314,7 @@ export declare class Workspace implements ComponentFactory {
309
314
  */
310
315
  clearAllComponentsCache(): void;
311
316
  clearComponentCache(id: ComponentID): void;
317
+ clearComponentsCache(ids: ComponentID[]): void;
312
318
  warmCache(): Promise<void>;
313
319
  getWorkspaceConfig(): WorkspaceConfig;
314
320
  cleanFromConfig(ids: ComponentID[]): Promise<boolean>;
package/dist/workspace.js CHANGED
@@ -396,6 +396,11 @@ class Workspace {
396
396
  * This is important to know to ignore missing modules across different places
397
397
  */
398
398
  _defineProperty(this, "inInstallContext", false);
399
+ /**
400
+ * Indicate that we done with the package manager installation process
401
+ * This is important to skip stuff when package manager install is not done yet
402
+ */
403
+ _defineProperty(this, "inInstallAfterPmContext", false);
399
404
  _defineProperty(this, "componentLoadedSelfAsAspects", void 0);
400
405
  // cache loaded components
401
406
  _defineProperty(this, "aspectsMerger", void 0);
@@ -881,6 +886,9 @@ it's possible that the version ${component.id.version} belong to ${idStr.split('
881
886
  this.consumer.clearOneComponentCache(id);
882
887
  this.componentList = new (_legacy3().ComponentsList)(this.consumer);
883
888
  }
889
+ clearComponentsCache(ids) {
890
+ ids.forEach(id => this.clearComponentCache(id));
891
+ }
884
892
  async warmCache() {
885
893
  await this.list();
886
894
  }