@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.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_workspace_workspace-preview.js +1 -1
- package/artifacts/schema.json +4972 -2576
- package/dist/{preview-1734664696801.js → preview-1734878977623.js} +2 -2
- package/dist/workspace.d.ts +6 -0
- package/dist/workspace.js +8 -0
- package/dist/workspace.js.map +1 -1
- package/package.json +40 -40
|
@@ -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.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];
|
package/dist/workspace.d.ts
CHANGED
|
@@ -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
|
}
|