@teambit/workspace 1.0.1220 → 1.0.1221
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/dist/auto-tag.js
CHANGED
|
@@ -97,13 +97,15 @@ function buildGraph(components) {
|
|
|
97
97
|
components.forEach(component => {
|
|
98
98
|
const idStr = component.id.toStringWithoutVersion();
|
|
99
99
|
component.getAllDependencies().forEach(dependency => {
|
|
100
|
-
if (componentsIds.searchWithoutVersion(dependency.id))
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
100
|
+
if (!componentsIds.searchWithoutVersion(dependency.id)) return;
|
|
101
|
+
const depId = dependency.id.toStringWithoutVersion();
|
|
102
|
+
// the component uses the version set in its config (e.g. "bit deps set"), not the workspace one. so a change in
|
|
103
|
+
// the workspace one doesn't affect it.
|
|
104
|
+
if (component.isDependencyVersionFromConfig(dependency.id)) return;
|
|
105
|
+
// save the full ComponentID of a string id to be able to retrieve it later with no confusion
|
|
106
|
+
if (!graph.hasNode(idStr)) graph.setNode(idStr, component.id);
|
|
107
|
+
if (!graph.hasNode(depId)) graph.setNode(depId, dependency.id);
|
|
108
|
+
graph.setEdge(idStr, depId);
|
|
107
109
|
});
|
|
108
110
|
});
|
|
109
111
|
return graph;
|
package/dist/auto-tag.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_graphlib","data","_interopRequireWildcard","require","_semver","_interopRequireDefault","_componentId","_componentVersion","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","getAutoTagPending","workspace","changedComponents","autoTagInfo","getAutoTagInfo","map","a","component","length","potentialComponents","potentialComponentsForAutoTagging","consumer","idsToLoad","ComponentIdList","workspaceComponents","getMany","undefined","components","workspaceComponent","state","_consumer","graph","buildGraph","autoTagResults","forEach","bitId","componentId","idStr","toStringWithoutVersion","hasNode","dependenciesStr","graphlib","alg","preorder","dependenciesBitIds","depStr","node","triggeredDependencies","filter","dependencyId","changedComponentId","searchWithoutVersion","isTag","version","semver","gte","push","triggeredBy","fromArray","Graph","componentsIds","c","id","getAllDependencies","dependency","depId","setNode","setEdge","modifiedComponents","candidateComponentsIds","bitMap","getAllBitIds","idsWithoutModified","candidateId","hasWithoutVersion"],"sources":["auto-tag.ts"],"sourcesContent":["import graphlib, { Graph } from 'graphlib';\nimport semver from 'semver';\nimport { ComponentIdList } from '@teambit/component-id';\nimport { isTag } from '@teambit/component-version';\nimport type { Consumer } from '@teambit/legacy.consumer';\nimport type { Dependency, ConsumerComponent as Component } from '@teambit/legacy.consumer-component';\nimport type { Workspace } from './workspace';\n\nexport async function getAutoTagPending(\n workspace: Workspace,\n changedComponents: ComponentIdList\n): Promise<Component[]> {\n const autoTagInfo = await getAutoTagInfo(workspace, changedComponents);\n return autoTagInfo.map((a) => a.component);\n}\n\nexport type AutoTagResult = { component: Component; triggeredBy: ComponentIdList };\n\nexport async function getAutoTagInfo(\n workspace: Workspace,\n changedComponents: ComponentIdList\n): Promise<AutoTagResult[]> {\n if (!changedComponents.length) return [];\n const potentialComponents = potentialComponentsForAutoTagging(workspace.consumer, changedComponents);\n const idsToLoad = new ComponentIdList(...potentialComponents, ...changedComponents);\n const workspaceComponents = await workspace.getMany(idsToLoad, undefined, false);\n const components = workspaceComponents.map((workspaceComponent) => workspaceComponent.state._consumer);\n const graph = buildGraph(components);\n\n const autoTagResults: AutoTagResult[] = [];\n components.forEach((component) => {\n const bitId = component.componentId;\n const idStr = bitId.toStringWithoutVersion();\n if (!graph.hasNode(idStr)) return;\n // preorder gets all dependencies and dependencies of dependencies and so on.\n // we loop over the dependencies of a component\n // @ts-ignore\n const dependenciesStr = graphlib.alg.preorder(graph, idStr);\n const dependenciesBitIds = dependenciesStr.map((depStr) => graph.node(depStr));\n const triggeredDependencies = dependenciesBitIds.filter((dependencyId) => {\n const changedComponentId = changedComponents.searchWithoutVersion(dependencyId);\n if (!changedComponentId) {\n // the dependency hasn't changed, so the component is not auto-tag pending\n return false;\n }\n if (changedComponents.searchWithoutVersion(bitId)) {\n // the dependency has changed but also the component itself, so it's going to be tagged anyway\n return false;\n }\n // we only check whether a modified component may cause auto-tagging\n // since it's only modified on the file-system, its version might be the same as the version stored in its\n // dependents. That's why \"semver.gte\" is used instead of \"semver.gt\".\n // the case when it returns false is when the changedComponentId.version is smaller than\n // edgeId.version. it happens for example, when A => B (A depends on B), B has changed, A is\n // a candidate. A has the B dependency saved in the model with version 2.0.0 and B is now\n // tagged with 1.0.1. So, because A has B with a higher version already, we don't want to\n // auto-tag it and downgrade its B version.\n if (isTag(changedComponentId.version) && isTag(dependencyId.version)) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return semver.gte(changedComponentId.version!, dependencyId.version!);\n }\n // when they're not tags but snaps, it is impossible to snap from a detached head so a\n // component is always candidate when its dependencies have changed.\n return true;\n });\n if (triggeredDependencies.length) {\n autoTagResults.push({ component, triggeredBy: ComponentIdList.fromArray(triggeredDependencies) });\n }\n });\n\n return autoTagResults;\n}\n\nfunction buildGraph(components: Component[]): Graph {\n const graph = new Graph();\n const componentsIds = ComponentIdList.fromArray(components.map((c) => c.id));\n\n components.forEach((component) => {\n const idStr = component.id.toStringWithoutVersion();\n component.getAllDependencies().forEach((dependency: Dependency) => {\n if (componentsIds.searchWithoutVersion(dependency.id)) {\n const depId = dependency.id.toStringWithoutVersion();\n // save the full ComponentID of a string id to be able to retrieve it later with no confusion\n if (!graph.hasNode(idStr)) graph.setNode(idStr, component.id);\n if (!graph.hasNode(depId)) graph.setNode(depId, dependency.id);\n graph.setEdge(idStr, depId);\n }\n });\n });\n return graph;\n}\n\nfunction potentialComponentsForAutoTagging(consumer: Consumer, modifiedComponents: ComponentIdList): ComponentIdList {\n const candidateComponentsIds = consumer.bitMap.getAllBitIds();\n // if a modified component is in candidates array, remove it from the array as it will be already\n // tagged with the correct version\n const idsWithoutModified = candidateComponentsIds.filter(\n (candidateId) => !modifiedComponents.hasWithoutVersion(candidateId)\n );\n return ComponentIdList.fromArray(idsWithoutModified);\n}\n"],"mappings":";;;;;;;AAAA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,uBAAA,CAAAC,OAAA;EAAAH,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,QAAA;EAAA,MAAAH,IAAA,GAAAI,sBAAA,CAAAF,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,aAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,YAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,kBAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,iBAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAmD,SAAAI,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAV,uBAAA,YAAAA,CAAAM,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAE,CAAA,CAAAI,GAAA,CAAAX,CAAA,UAAAO,CA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,CAACL,kBAAkB,CAACM,iBAAiB,CAACD,WAAW,CACpE,CAAC;EACD,OAAOlD,8BAAe,CAACmC,SAAS,CAACc,kBAAkB,CAAC;AACtD","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_graphlib","data","_interopRequireWildcard","require","_semver","_interopRequireDefault","_componentId","_componentVersion","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","getAutoTagPending","workspace","changedComponents","autoTagInfo","getAutoTagInfo","map","a","component","length","potentialComponents","potentialComponentsForAutoTagging","consumer","idsToLoad","ComponentIdList","workspaceComponents","getMany","undefined","components","workspaceComponent","state","_consumer","graph","buildGraph","autoTagResults","forEach","bitId","componentId","idStr","toStringWithoutVersion","hasNode","dependenciesStr","graphlib","alg","preorder","dependenciesBitIds","depStr","node","triggeredDependencies","filter","dependencyId","changedComponentId","searchWithoutVersion","isTag","version","semver","gte","push","triggeredBy","fromArray","Graph","componentsIds","c","id","getAllDependencies","dependency","depId","isDependencyVersionFromConfig","setNode","setEdge","modifiedComponents","candidateComponentsIds","bitMap","getAllBitIds","idsWithoutModified","candidateId","hasWithoutVersion"],"sources":["auto-tag.ts"],"sourcesContent":["import graphlib, { Graph } from 'graphlib';\nimport semver from 'semver';\nimport { ComponentIdList } from '@teambit/component-id';\nimport { isTag } from '@teambit/component-version';\nimport type { Consumer } from '@teambit/legacy.consumer';\nimport type { Dependency, ConsumerComponent as Component } from '@teambit/legacy.consumer-component';\nimport type { Workspace } from './workspace';\n\nexport async function getAutoTagPending(\n workspace: Workspace,\n changedComponents: ComponentIdList\n): Promise<Component[]> {\n const autoTagInfo = await getAutoTagInfo(workspace, changedComponents);\n return autoTagInfo.map((a) => a.component);\n}\n\nexport type AutoTagResult = { component: Component; triggeredBy: ComponentIdList };\n\nexport async function getAutoTagInfo(\n workspace: Workspace,\n changedComponents: ComponentIdList\n): Promise<AutoTagResult[]> {\n if (!changedComponents.length) return [];\n const potentialComponents = potentialComponentsForAutoTagging(workspace.consumer, changedComponents);\n const idsToLoad = new ComponentIdList(...potentialComponents, ...changedComponents);\n const workspaceComponents = await workspace.getMany(idsToLoad, undefined, false);\n const components = workspaceComponents.map((workspaceComponent) => workspaceComponent.state._consumer);\n const graph = buildGraph(components);\n\n const autoTagResults: AutoTagResult[] = [];\n components.forEach((component) => {\n const bitId = component.componentId;\n const idStr = bitId.toStringWithoutVersion();\n if (!graph.hasNode(idStr)) return;\n // preorder gets all dependencies and dependencies of dependencies and so on.\n // we loop over the dependencies of a component\n // @ts-ignore\n const dependenciesStr = graphlib.alg.preorder(graph, idStr);\n const dependenciesBitIds = dependenciesStr.map((depStr) => graph.node(depStr));\n const triggeredDependencies = dependenciesBitIds.filter((dependencyId) => {\n const changedComponentId = changedComponents.searchWithoutVersion(dependencyId);\n if (!changedComponentId) {\n // the dependency hasn't changed, so the component is not auto-tag pending\n return false;\n }\n if (changedComponents.searchWithoutVersion(bitId)) {\n // the dependency has changed but also the component itself, so it's going to be tagged anyway\n return false;\n }\n // we only check whether a modified component may cause auto-tagging\n // since it's only modified on the file-system, its version might be the same as the version stored in its\n // dependents. That's why \"semver.gte\" is used instead of \"semver.gt\".\n // the case when it returns false is when the changedComponentId.version is smaller than\n // edgeId.version. it happens for example, when A => B (A depends on B), B has changed, A is\n // a candidate. A has the B dependency saved in the model with version 2.0.0 and B is now\n // tagged with 1.0.1. So, because A has B with a higher version already, we don't want to\n // auto-tag it and downgrade its B version.\n if (isTag(changedComponentId.version) && isTag(dependencyId.version)) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return semver.gte(changedComponentId.version!, dependencyId.version!);\n }\n // when they're not tags but snaps, it is impossible to snap from a detached head so a\n // component is always candidate when its dependencies have changed.\n return true;\n });\n if (triggeredDependencies.length) {\n autoTagResults.push({ component, triggeredBy: ComponentIdList.fromArray(triggeredDependencies) });\n }\n });\n\n return autoTagResults;\n}\n\nfunction buildGraph(components: Component[]): Graph {\n const graph = new Graph();\n const componentsIds = ComponentIdList.fromArray(components.map((c) => c.id));\n\n components.forEach((component) => {\n const idStr = component.id.toStringWithoutVersion();\n component.getAllDependencies().forEach((dependency: Dependency) => {\n if (!componentsIds.searchWithoutVersion(dependency.id)) return;\n const depId = dependency.id.toStringWithoutVersion();\n // the component uses the version set in its config (e.g. \"bit deps set\"), not the workspace one. so a change in\n // the workspace one doesn't affect it.\n if (component.isDependencyVersionFromConfig(dependency.id)) return;\n // save the full ComponentID of a string id to be able to retrieve it later with no confusion\n if (!graph.hasNode(idStr)) graph.setNode(idStr, component.id);\n if (!graph.hasNode(depId)) graph.setNode(depId, dependency.id);\n graph.setEdge(idStr, depId);\n });\n });\n return graph;\n}\n\nfunction potentialComponentsForAutoTagging(consumer: Consumer, modifiedComponents: ComponentIdList): ComponentIdList {\n const candidateComponentsIds = consumer.bitMap.getAllBitIds();\n // if a modified component is in candidates array, remove it from the array as it will be already\n // tagged with the correct version\n const idsWithoutModified = candidateComponentsIds.filter(\n (candidateId) => !modifiedComponents.hasWithoutVersion(candidateId)\n );\n return ComponentIdList.fromArray(idsWithoutModified);\n}\n"],"mappings":";;;;;;;AAAA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,uBAAA,CAAAC,OAAA;EAAAH,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,QAAA;EAAA,MAAAH,IAAA,GAAAI,sBAAA,CAAAF,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,aAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,YAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,kBAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,iBAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;E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;MACA;MACA,IAAIrB,SAAS,CAACiD,6BAA6B,CAACF,UAAU,CAACF,EAAE,CAAC,EAAE;MAC5D;MACA,IAAI,CAAC/B,KAAK,CAACQ,OAAO,CAACF,KAAK,CAAC,EAAEN,KAAK,CAACoC,OAAO,CAAC9B,KAAK,EAAEpB,SAAS,CAAC6C,EAAE,CAAC;MAC7D,IAAI,CAAC/B,KAAK,CAACQ,OAAO,CAAC0B,KAAK,CAAC,EAAElC,KAAK,CAACoC,OAAO,CAACF,KAAK,EAAED,UAAU,CAACF,EAAE,CAAC;MAC9D/B,KAAK,CAACqC,OAAO,CAAC/B,KAAK,EAAE4B,KAAK,CAAC;IAC7B,CAAC,CAAC;EACJ,CAAC,CAAC;EACF,OAAOlC,KAAK;AACd;AAEA,SAASX,iCAAiCA,CAACC,QAAkB,EAAEgD,kBAAmC,EAAmB;EACnH,MAAMC,sBAAsB,GAAGjD,QAAQ,CAACkD,MAAM,CAACC,YAAY,CAAC,CAAC;EAC7D;EACA;EACA,MAAMC,kBAAkB,GAAGH,sBAAsB,CAACtB,MAAM,CACrD0B,WAAW,IAAK,CAACL,kBAAkB,CAACM,iBAAiB,CAACD,WAAW,CACpE,CAAC;EACD,OAAOnD,8BAAe,CAACmC,SAAS,CAACe,kBAAkB,CAAC;AACtD","ignoreList":[]}
|
|
@@ -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.1221/dist/workspace.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.1221/dist/workspace.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/workspace",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1221",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/workspace/workspace",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.workspace",
|
|
8
8
|
"name": "workspace",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.1221"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"lodash": "4.18.1",
|
|
@@ -30,44 +30,26 @@
|
|
|
30
30
|
"reset-css": "5.0.1",
|
|
31
31
|
"@teambit/component-id": "1.2.5",
|
|
32
32
|
"@teambit/harmony": "0.4.12",
|
|
33
|
-
"@teambit/legacy.extension-data": "0.0.183",
|
|
34
|
-
"@teambit/legacy.scope": "0.0.181",
|
|
35
33
|
"@teambit/component-version": "1.0.4",
|
|
36
|
-
"@teambit/legacy.consumer-component": "0.0.182",
|
|
37
|
-
"@teambit/legacy.consumer": "0.0.181",
|
|
38
34
|
"@teambit/bit-error": "0.0.404",
|
|
39
35
|
"@teambit/lane-id": "0.0.312",
|
|
40
|
-
"@teambit/legacy.bit-map": "0.0.238",
|
|
41
36
|
"@teambit/toolbox.fs.last-modified": "0.0.24",
|
|
42
37
|
"@teambit/toolbox.path.path": "0.0.26",
|
|
43
38
|
"@teambit/graph.cleargraph": "0.0.11",
|
|
44
39
|
"@teambit/logger": "0.0.1498",
|
|
45
|
-
"@teambit/objects": "0.0.715",
|
|
46
|
-
"@teambit/component-issues": "0.0.191",
|
|
47
|
-
"@teambit/cli": "0.0.1412",
|
|
48
|
-
"@teambit/config-store": "0.0.293",
|
|
49
40
|
"@teambit/legacy.constants": "0.0.49",
|
|
50
41
|
"@teambit/component.ui.component-status-resolver": "0.0.510",
|
|
51
42
|
"@teambit/harmony.modules.load-trace": "0.0.17",
|
|
52
43
|
"@teambit/harmony.modules.resolved-component": "0.0.530",
|
|
53
44
|
"@teambit/legacy.utils": "0.0.56",
|
|
54
|
-
"@teambit/scope.remotes": "0.0.181",
|
|
55
|
-
"@teambit/config": "0.0.1587",
|
|
56
45
|
"@teambit/harmony.modules.requireable-component": "0.0.530",
|
|
57
46
|
"@teambit/harmony.modules.runtimes": "0.0.4",
|
|
58
47
|
"@teambit/toolbox.modules.module-resolver": "0.0.29",
|
|
59
|
-
"@teambit/workspace.modules.node-modules-linker": "0.0.414",
|
|
60
48
|
"@teambit/graphql": "1.0.1205",
|
|
61
|
-
"@teambit/global-config": "0.0.1416",
|
|
62
|
-
"@teambit/legacy.consumer-config": "0.0.181",
|
|
63
|
-
"@teambit/variants": "0.0.1680",
|
|
64
|
-
"@teambit/component.sources": "0.0.233",
|
|
65
49
|
"@teambit/dependencies.modules.packages-excluder": "1.0.8",
|
|
66
50
|
"@teambit/git.modules.git-executable": "0.0.50",
|
|
67
51
|
"@teambit/harmony.modules.in-memory-cache": "0.0.54",
|
|
68
52
|
"@teambit/legacy-bit-id": "1.1.4",
|
|
69
|
-
"@teambit/legacy.component-list": "0.0.235",
|
|
70
|
-
"@teambit/legacy.scope-api": "0.0.236",
|
|
71
53
|
"@teambit/toolbox.path.is-path-inside": "0.0.518",
|
|
72
54
|
"@teambit/workspace.modules.match-pattern": "0.0.539",
|
|
73
55
|
"@teambit/component.ui.component-drawer": "0.0.513",
|
|
@@ -105,18 +87,36 @@
|
|
|
105
87
|
"@teambit/workspace.hooks.use-url-change-broadcaster": "0.0.7",
|
|
106
88
|
"@teambit/workspace.ui.preserve-workspace-mode": "0.0.8",
|
|
107
89
|
"@teambit/evangelist.elements.icon": "1.0.5",
|
|
108
|
-
"@teambit/component": "1.0.
|
|
109
|
-
"@teambit/dependency-resolver": "1.0.
|
|
110
|
-
"@teambit/envs": "1.0.
|
|
111
|
-
"@teambit/
|
|
112
|
-
"@teambit/
|
|
113
|
-
"@teambit/
|
|
114
|
-
"@teambit/
|
|
115
|
-
"@teambit/
|
|
116
|
-
"@teambit/
|
|
117
|
-
"@teambit/
|
|
118
|
-
"@teambit/
|
|
119
|
-
"@teambit/
|
|
90
|
+
"@teambit/component": "1.0.1220",
|
|
91
|
+
"@teambit/dependency-resolver": "1.0.1220",
|
|
92
|
+
"@teambit/envs": "1.0.1220",
|
|
93
|
+
"@teambit/legacy.extension-data": "0.0.184",
|
|
94
|
+
"@teambit/legacy.scope": "0.0.182",
|
|
95
|
+
"@teambit/legacy.consumer-component": "0.0.183",
|
|
96
|
+
"@teambit/legacy.consumer": "0.0.182",
|
|
97
|
+
"@teambit/legacy.bit-map": "0.0.239",
|
|
98
|
+
"@teambit/objects": "0.0.716",
|
|
99
|
+
"@teambit/scope": "1.0.1221",
|
|
100
|
+
"@teambit/component-issues": "0.0.192",
|
|
101
|
+
"@teambit/graph": "1.0.1221",
|
|
102
|
+
"@teambit/cli": "0.0.1413",
|
|
103
|
+
"@teambit/config-store": "0.0.294",
|
|
104
|
+
"@teambit/isolator": "1.0.1221",
|
|
105
|
+
"@teambit/component-tree": "1.0.1220",
|
|
106
|
+
"@teambit/scope.remotes": "0.0.182",
|
|
107
|
+
"@teambit/aspect-loader": "1.0.1220",
|
|
108
|
+
"@teambit/config": "0.0.1588",
|
|
109
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.415",
|
|
110
|
+
"@teambit/bundler": "1.0.1221",
|
|
111
|
+
"@teambit/global-config": "0.0.1417",
|
|
112
|
+
"@teambit/legacy.consumer-config": "0.0.182",
|
|
113
|
+
"@teambit/ui": "1.0.1221",
|
|
114
|
+
"@teambit/variants": "0.0.1681",
|
|
115
|
+
"@teambit/component.sources": "0.0.234",
|
|
116
|
+
"@teambit/legacy.component-list": "0.0.236",
|
|
117
|
+
"@teambit/legacy.scope-api": "0.0.237",
|
|
118
|
+
"@teambit/command-bar": "1.0.1221",
|
|
119
|
+
"@teambit/sidebar": "1.0.1220"
|
|
120
120
|
},
|
|
121
121
|
"devDependencies": {
|
|
122
122
|
"@types/lodash": "4.14.165",
|