@teambit/workspace 1.0.221 → 1.0.223
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 +2094 -1994
- package/dist/{preview-1712287228511.js → preview-1712459737723.js} +2 -2
- package/dist/workspace.d.ts +2 -1
- package/dist/workspace.js +3 -0
- package/dist/workspace.js.map +1 -1
- package/package.json +20 -20
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.223/dist/workspace.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.223/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
|
@@ -4,7 +4,7 @@ import { IssuesList } from '@teambit/component-issues';
|
|
|
4
4
|
import type { AspectLoaderMain, AspectDefinition } from '@teambit/aspect-loader';
|
|
5
5
|
import { ComponentMain, Component, ComponentFactory, InvalidComponent, ResolveAspectsOptions } from '@teambit/component';
|
|
6
6
|
import { ComponentScopeDirMap } from '@teambit/config';
|
|
7
|
-
import { DependencyResolverMain } from '@teambit/dependency-resolver';
|
|
7
|
+
import { DependencyResolverMain, DependencyList } from '@teambit/dependency-resolver';
|
|
8
8
|
import { EnvsMain } from '@teambit/envs';
|
|
9
9
|
import { GraphqlMain } from '@teambit/graphql';
|
|
10
10
|
import { Harmony } from '@teambit/harmony';
|
|
@@ -262,6 +262,7 @@ export declare class Workspace implements ComponentFactory {
|
|
|
262
262
|
getGraph(ids?: ComponentID[], shouldThrowOnMissingDep?: boolean): Promise<Graph<Component, string>>;
|
|
263
263
|
getGraphIds(ids?: ComponentID[], shouldThrowOnMissingDep?: boolean): Promise<CompIdGraph>;
|
|
264
264
|
getUnavailableOnMainComponents(): Promise<ComponentID[]>;
|
|
265
|
+
getDependencies(component: Component): DependencyList;
|
|
265
266
|
getSavedGraphOfComponentIfExist(component: Component): Promise<Graph<ComponentID, DepEdgeType> | null>;
|
|
266
267
|
/**
|
|
267
268
|
* given component ids, find their dependents in the workspace
|
package/dist/workspace.js
CHANGED
|
@@ -711,6 +711,9 @@ class Workspace {
|
|
|
711
711
|
}));
|
|
712
712
|
return compsWithHead;
|
|
713
713
|
}
|
|
714
|
+
getDependencies(component) {
|
|
715
|
+
return this.dependencyResolver.getDependencies(component);
|
|
716
|
+
}
|
|
714
717
|
async getSavedGraphOfComponentIfExist(component) {
|
|
715
718
|
if (!component.id.hasVersion()) return null;
|
|
716
719
|
const flattenedEdges = await this.scope.getFlattenedEdges(component.id);
|