diff --git a/e2e/harmony/root-components.e2e.ts b/e2e/harmony/root-components.e2e.ts index 093a2a163360..447d1c355a72 100644 --- a/e2e/harmony/root-components.e2e.ts +++ b/e2e/harmony/root-components.e2e.ts @@ -1,3 +1,4 @@ +import { getRootComponentDir } from '@teambit/workspace.root-components'; import { resolveFrom } from '@teambit/toolbox.modules.module-resolver'; import chai, { expect } from 'chai'; import fs from 'fs-extra'; @@ -1679,3 +1680,23 @@ describe('create with root components on', function () { expect(path.join(helper.env.rootCompDirDep('teambit.react/react', 'my-button'), 'index.ts')).to.be.a.path(); }); }); + +describe('custom root components directory', function () { + let helper: Helper; + this.timeout(0); + describe('set a valid custom location', () => { + before(() => { + helper = new Helper(); + helper.scopeHelper.setNewLocalAndRemoteScopes(); + helper.extensions.workspaceJsonc.addKeyValToWorkspace('rootComponentsDirectory', ''); + helper.extensions.workspaceJsonc.addKeyValToDependencyResolver('rootComponents', true); + helper.command.create('react', 'card', '--env teambit.react/react'); + helper.command.install(); + }); + it('should create the root component directory at the specified location', () => { + expect( + getRootComponentDir(path.join(helper.scopes.localPath, '.bit_roots'), 'teambit.react/react') + ).to.be.a.path(); + }); + }); +}); diff --git a/package.json b/package.json index 56faad30da7c..a13c7c47bfd3 100644 --- a/package.json +++ b/package.json @@ -137,12 +137,12 @@ "@teambit/harmony.modules.feature-toggle": "~0.0.4", "@teambit/legacy.scope-api": "~0.0.1", "@teambit/bit-error": "~0.0.404", - "@teambit/bit-roots": "~0.0.133", "@teambit/lane-id": "~0.0.311", "@teambit/component-version": "^1.0.3", "@teambit/toolbox.network.agent": "~0.0.554", "@teambit/legacy-component-log": "~0.0.402", "@teambit/graph.cleargraph": "0.0.11", + "@teambit/workspace.root-components": "1.0.0", "@babel/core": "7.19.6", "@babel/runtime": "7.23.2", "@teambit/legacy-bit-id": "^1.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3b3aeddea7ee..be0e3f78b468 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -300,9 +300,6 @@ importers: '@teambit/bit-error': specifier: ~0.0.404 version: 0.0.404 - '@teambit/bit-roots': - specifier: ~0.0.133 - version: 0.0.133(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/bit.content.what-is-bit': specifier: 1.96.2 version: 1.96.2(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -375,6 +372,9 @@ importers: '@teambit/component.instructions.exporting-components': specifier: 0.0.7 version: 0.0.7(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/component.sources': + specifier: ~0.0.1 + version: 0.0.3 '@teambit/component.ui.artifacts.artifacts-tree': specifier: ^0.0.26 version: 0.0.26(@apollo/client@3.10.7(@types/react@17.0.80)(graphql@15.8.0)(react-dom@17.0.2(react@17.0.2))(react@17.0.2)(subscriptions-transport-ws@0.9.18(bufferutil@4.0.3)(graphql@15.8.0)(utf-8-validate@5.0.5)))(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react-router-dom@6.24.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(react@17.0.2) @@ -819,6 +819,18 @@ importers: '@teambit/legacy-bit-id': specifier: ^1.1.1 version: 1.1.1 + '@teambit/legacy.analytics': + specifier: ~0.0.1 + version: 0.0.8(encoding@0.1.13) + '@teambit/legacy.bit-map': + specifier: ~0.0.4 + version: 0.0.6 + '@teambit/legacy.component-list': + specifier: ~0.0.2 + version: 0.0.4 + '@teambit/legacy.scope-api': + specifier: ~0.0.1 + version: 0.0.5 '@teambit/mdx.compilers.mdx-transpiler': specifier: ^1.0.6 version: 1.0.8 @@ -849,6 +861,9 @@ importers: '@teambit/pkg.content.packages-overview': specifier: 1.95.9 version: 1.95.9(@apollo/client@3.10.7(@types/react@17.0.80)(graphql@15.8.0)(react-dom@17.0.2(react@17.0.2))(react@17.0.2)(subscriptions-transport-ws@0.9.18(bufferutil@4.0.3)(graphql@15.8.0)(utf-8-validate@5.0.5)))(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(graphql@15.8.0)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/pkg.modules.component-package-name': + specifier: ~0.0.1 + version: 0.0.3 '@teambit/pkg.package-json.validator': specifier: 0.0.1 version: 0.0.1 @@ -1071,6 +1086,9 @@ importers: '@teambit/workspace.content.workspace-overview': specifier: 1.95.0 version: 1.95.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.root-components': + specifier: 1.0.0 + version: 1.0.0 '@teambit/workspace.ui.empty-workspace': specifier: ^0.0.508 version: 0.0.508(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -5781,7 +5799,7 @@ importers: version: file:scopes/component/sources '@teambit/component.testing.mock-components': specifier: workspace:* - version: file:scopes/component/testing/mock-components(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/component/testing/mock-components '@teambit/component.ui.component-compare.changelog': specifier: workspace:* version: file:components/ui/component-compare/changelog(@apollo/client@3.10.7(@types/react@17.0.80)(graphql@15.8.0)(react-dom@17.0.2(react@17.0.2))(react@17.0.2)(subscriptions-transport-ws@0.9.19(bufferutil@4.0.3)(graphql@15.8.0)(utf-8-validate@5.0.5)))(@teambit/base-react.navigation.link@2.0.31(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -5991,7 +6009,7 @@ importers: version: file:scopes/harmony/modules/resolved-component '@teambit/harmony.testing.load-aspect': specifier: workspace:* - version: file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/harmony/testing/load-aspect '@teambit/harmony.ui.aspect-box': specifier: workspace:* version: file:scopes/harmony/ui/aspect-box(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -6444,7 +6462,7 @@ importers: version: file:scopes/workspace/modules/match-pattern '@teambit/workspace.modules.node-modules-linker': specifier: workspace:* - version: file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/workspace/modules/node-modules-linker '@teambit/workspace.testing.mock-workspace': specifier: workspace:* version: file:scopes/workspace/testing/mock-workspace @@ -7356,7 +7374,7 @@ importers: version: file:scopes/component/sources '@teambit/component.testing.mock-components': specifier: workspace:* - version: file:scopes/component/testing/mock-components(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/component/testing/mock-components '@teambit/component.ui.component-compare.changelog': specifier: workspace:* version: file:components/ui/component-compare/changelog(@apollo/client@3.10.7(@types/react@17.0.80)(graphql@15.8.0)(react-dom@17.0.2(react@17.0.2))(react@17.0.2)(subscriptions-transport-ws@0.9.19(bufferutil@4.0.3)(graphql@15.8.0)(utf-8-validate@5.0.5)))(@teambit/base-react.navigation.link@2.0.31(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -7566,7 +7584,7 @@ importers: version: file:scopes/harmony/modules/resolved-component '@teambit/harmony.testing.load-aspect': specifier: workspace:* - version: file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/harmony/testing/load-aspect '@teambit/harmony.ui.aspect-box': specifier: workspace:* version: file:scopes/harmony/ui/aspect-box(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -8019,7 +8037,7 @@ importers: version: file:scopes/workspace/modules/match-pattern '@teambit/workspace.modules.node-modules-linker': specifier: workspace:* - version: file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/workspace/modules/node-modules-linker '@teambit/workspace.testing.mock-workspace': specifier: workspace:* version: file:scopes/workspace/testing/mock-workspace @@ -8934,7 +8952,7 @@ importers: version: file:scopes/component/sources '@teambit/component.testing.mock-components': specifier: workspace:* - version: file:scopes/component/testing/mock-components(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/component/testing/mock-components '@teambit/component.ui.component-compare.changelog': specifier: workspace:* version: file:components/ui/component-compare/changelog(@apollo/client@3.10.7(@types/react@17.0.80)(graphql@15.8.0)(react-dom@17.0.2(react@17.0.2))(react@17.0.2)(subscriptions-transport-ws@0.9.19(bufferutil@4.0.3)(graphql@15.8.0)(utf-8-validate@5.0.5)))(@teambit/base-react.navigation.link@2.0.31(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -9147,7 +9165,7 @@ importers: version: file:scopes/harmony/modules/resolved-component '@teambit/harmony.testing.load-aspect': specifier: workspace:* - version: file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/harmony/testing/load-aspect '@teambit/harmony.ui.aspect-box': specifier: workspace:* version: file:scopes/harmony/ui/aspect-box(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -9603,7 +9621,7 @@ importers: version: file:scopes/workspace/modules/match-pattern '@teambit/workspace.modules.node-modules-linker': specifier: workspace:* - version: file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/workspace/modules/node-modules-linker '@teambit/workspace.testing.mock-workspace': specifier: workspace:* version: file:scopes/workspace/testing/mock-workspace @@ -10533,7 +10551,7 @@ importers: version: file:scopes/component/sources '@teambit/component.testing.mock-components': specifier: workspace:* - version: file:scopes/component/testing/mock-components(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/component/testing/mock-components '@teambit/component.ui.component-compare.changelog': specifier: workspace:* version: file:components/ui/component-compare/changelog(@apollo/client@3.10.7(@types/react@17.0.80)(graphql@15.8.0)(react-dom@17.0.2(react@17.0.2))(react@17.0.2)(subscriptions-transport-ws@0.9.19(bufferutil@4.0.3)(graphql@15.8.0)(utf-8-validate@5.0.5)))(@teambit/base-react.navigation.link@2.0.31(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -10746,7 +10764,7 @@ importers: version: file:scopes/harmony/modules/resolved-component '@teambit/harmony.testing.load-aspect': specifier: workspace:* - version: file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/harmony/testing/load-aspect '@teambit/harmony.ui.aspect-box': specifier: workspace:* version: file:scopes/harmony/ui/aspect-box(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -11202,7 +11220,7 @@ importers: version: file:scopes/workspace/modules/match-pattern '@teambit/workspace.modules.node-modules-linker': specifier: workspace:* - version: file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/workspace/modules/node-modules-linker '@teambit/workspace.testing.mock-workspace': specifier: workspace:* version: file:scopes/workspace/testing/mock-workspace @@ -12129,7 +12147,7 @@ importers: version: file:scopes/component/sources '@teambit/component.testing.mock-components': specifier: workspace:* - version: file:scopes/component/testing/mock-components(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/component/testing/mock-components '@teambit/component.ui.component-compare.changelog': specifier: workspace:* version: file:components/ui/component-compare/changelog(@apollo/client@3.10.7(@types/react@17.0.80)(graphql@15.8.0)(react-dom@17.0.2(react@17.0.2))(react@17.0.2)(subscriptions-transport-ws@0.9.18(bufferutil@4.0.3)(graphql@15.8.0)(utf-8-validate@5.0.5)))(@teambit/base-react.navigation.link@2.0.31(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -12339,7 +12357,7 @@ importers: version: file:scopes/harmony/modules/resolved-component '@teambit/harmony.testing.load-aspect': specifier: workspace:* - version: file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/harmony/testing/load-aspect '@teambit/harmony.ui.aspect-box': specifier: workspace:* version: file:scopes/harmony/ui/aspect-box(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -12792,7 +12810,7 @@ importers: version: file:scopes/workspace/modules/match-pattern '@teambit/workspace.modules.node-modules-linker': specifier: workspace:* - version: file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/workspace/modules/node-modules-linker '@teambit/workspace.testing.mock-workspace': specifier: workspace:* version: file:scopes/workspace/testing/mock-workspace @@ -13698,7 +13716,7 @@ importers: version: file:scopes/component/sources '@teambit/component.testing.mock-components': specifier: workspace:* - version: file:scopes/component/testing/mock-components(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/component/testing/mock-components '@teambit/component.ui.component-compare.changelog': specifier: workspace:* version: file:components/ui/component-compare/changelog(@apollo/client@3.10.7(@types/react@17.0.80)(graphql@15.8.0)(react-dom@17.0.2(react@17.0.2))(react@17.0.2)(subscriptions-transport-ws@0.9.19(bufferutil@4.0.3)(graphql@15.8.0)(utf-8-validate@5.0.5)))(@teambit/base-react.navigation.link@2.0.31(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -13908,7 +13926,7 @@ importers: version: file:scopes/harmony/modules/resolved-component '@teambit/harmony.testing.load-aspect': specifier: workspace:* - version: file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/harmony/testing/load-aspect '@teambit/harmony.ui.aspect-box': specifier: workspace:* version: file:scopes/harmony/ui/aspect-box(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -14361,7 +14379,7 @@ importers: version: file:scopes/workspace/modules/match-pattern '@teambit/workspace.modules.node-modules-linker': specifier: workspace:* - version: file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/workspace/modules/node-modules-linker '@teambit/workspace.testing.mock-workspace': specifier: workspace:* version: file:scopes/workspace/testing/mock-workspace @@ -15276,7 +15294,7 @@ importers: version: file:scopes/component/sources '@teambit/component.testing.mock-components': specifier: workspace:* - version: file:scopes/component/testing/mock-components(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/component/testing/mock-components '@teambit/component.ui.component-compare.changelog': specifier: workspace:* version: file:components/ui/component-compare/changelog(@apollo/client@3.10.7(@types/react@17.0.80)(graphql@15.8.0)(react-dom@17.0.2(react@17.0.2))(react@17.0.2)(subscriptions-transport-ws@0.9.19(bufferutil@4.0.3)(graphql@15.8.0)(utf-8-validate@5.0.5)))(@teambit/base-react.navigation.link@2.0.31(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -15486,7 +15504,7 @@ importers: version: file:scopes/harmony/modules/resolved-component '@teambit/harmony.testing.load-aspect': specifier: workspace:* - version: file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/harmony/testing/load-aspect '@teambit/harmony.ui.aspect-box': specifier: workspace:* version: file:scopes/harmony/ui/aspect-box(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -15945,7 +15963,7 @@ importers: version: file:scopes/workspace/modules/match-pattern '@teambit/workspace.modules.node-modules-linker': specifier: workspace:* - version: file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/workspace/modules/node-modules-linker '@teambit/workspace.testing.mock-workspace': specifier: workspace:* version: file:scopes/workspace/testing/mock-workspace @@ -16872,7 +16890,7 @@ importers: version: file:scopes/component/sources '@teambit/component.testing.mock-components': specifier: workspace:* - version: file:scopes/component/testing/mock-components(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/component/testing/mock-components '@teambit/component.ui.component-compare.changelog': specifier: workspace:* version: file:components/ui/component-compare/changelog(@apollo/client@3.10.7(@types/react@17.0.80)(graphql@15.8.0)(react-dom@17.0.2(react@17.0.2))(react@17.0.2)(subscriptions-transport-ws@0.9.19(bufferutil@4.0.3)(graphql@15.8.0)(utf-8-validate@5.0.5)))(@teambit/base-react.navigation.link@2.0.31(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -17082,7 +17100,7 @@ importers: version: file:scopes/harmony/modules/resolved-component '@teambit/harmony.testing.load-aspect': specifier: workspace:* - version: file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/harmony/testing/load-aspect '@teambit/harmony.ui.aspect-box': specifier: workspace:* version: file:scopes/harmony/ui/aspect-box(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -17535,7 +17553,7 @@ importers: version: file:scopes/workspace/modules/match-pattern '@teambit/workspace.modules.node-modules-linker': specifier: workspace:* - version: file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/workspace/modules/node-modules-linker '@teambit/workspace.testing.mock-workspace': specifier: workspace:* version: file:scopes/workspace/testing/mock-workspace @@ -18453,7 +18471,7 @@ importers: version: file:scopes/component/sources '@teambit/component.testing.mock-components': specifier: workspace:* - version: file:scopes/component/testing/mock-components(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/component/testing/mock-components '@teambit/component.ui.component-compare.changelog': specifier: workspace:* version: file:components/ui/component-compare/changelog(@apollo/client@3.10.7(@types/react@17.0.80)(graphql@15.8.0)(react-dom@17.0.2(react@17.0.2))(react@17.0.2)(subscriptions-transport-ws@0.9.19(bufferutil@4.0.3)(graphql@15.8.0)(utf-8-validate@5.0.5)))(@teambit/base-react.navigation.link@2.0.31(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -18663,7 +18681,7 @@ importers: version: file:scopes/harmony/modules/resolved-component '@teambit/harmony.testing.load-aspect': specifier: workspace:* - version: file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/harmony/testing/load-aspect '@teambit/harmony.ui.aspect-box': specifier: workspace:* version: file:scopes/harmony/ui/aspect-box(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -19122,7 +19140,7 @@ importers: version: file:scopes/workspace/modules/match-pattern '@teambit/workspace.modules.node-modules-linker': specifier: workspace:* - version: file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + version: file:scopes/workspace/modules/node-modules-linker '@teambit/workspace.testing.mock-workspace': specifier: workspace:* version: file:scopes/workspace/testing/mock-workspace @@ -21149,9 +21167,6 @@ importers: '@teambit/bit-error': specifier: ~0.0.404 version: 0.0.404 - '@teambit/bit-roots': - specifier: ~0.0.133 - version: 0.0.133(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/component-id': specifier: ^1.2.0 version: 1.2.0 @@ -21161,6 +21176,9 @@ importers: '@teambit/mdx.ui.mdx-scope-context': specifier: 1.0.0 version: 1.0.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.root-components': + specifier: 1.0.0 + version: 1.0.0 '@types/react': specifier: ^17.0.67 version: 17.0.80 @@ -24735,9 +24753,6 @@ importers: '@teambit/bit-error': specifier: ~0.0.404 version: 0.0.404 - '@teambit/bit-roots': - specifier: ~0.0.133 - version: 0.0.133(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/bvm.path': specifier: ^0.1.2 version: 0.1.2 @@ -24759,6 +24774,9 @@ importers: '@teambit/toolbox.object.sorter': specifier: ~0.0.2 version: 0.0.2 + '@teambit/workspace.root-components': + specifier: 1.0.0 + version: 1.0.0 '@types/react': specifier: ^17.0.67 version: 17.0.80 @@ -32120,15 +32138,15 @@ importers: '@teambit/bit-error': specifier: ~0.0.404 version: 0.0.404 - '@teambit/bit-roots': - specifier: ~0.0.133 - version: 0.0.133(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/harmony': specifier: 0.4.6 version: 0.4.6 '@teambit/mdx.ui.mdx-scope-context': specifier: 1.0.0 version: 1.0.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.root-components': + specifier: 1.0.0 + version: 1.0.0 '@types/react': specifier: ^17.0.67 version: 17.0.80 @@ -32236,12 +32254,12 @@ importers: scopes/workspace/modules/node-modules-linker: dependencies: - '@teambit/bit-roots': - specifier: ~0.0.133 - version: 0.0.133(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@teambit/component-id': specifier: ^1.2.0 version: 1.2.0 + '@teambit/workspace.root-components': + specifier: 1.0.0 + version: 1.0.0 fs-extra: specifier: 10.0.0 version: 10.0.0 @@ -36155,13 +36173,6 @@ packages: resolution: {integrity: sha512-lGK6sZBk28H+MPuqIQp5+JRGw5xuE8MUTNoMQtWyda4/u6drNMgk4eYG1HWVcqbuJbGzrtfEDroDRx4ghBiUOQ==} engines: {node: '>=12.22.0'} - '@teambit/bit-roots@0.0.133': - resolution: {integrity: sha512-XIvJ4zERahe/FpvFELEuOdHthrC+EtCIcCfCyuXHealBcbcrlN8suxcY77vs6ZSJJAvW4HAnKaP/rQsrdI8i4w==} - engines: {node: '>=12.22.0'} - peerDependencies: - react: ^16.8.0 || ^17.0.0 - react-dom: ^16.8.0 || ^17.0.0 - '@teambit/bit.content.what-is-bit@1.96.2': resolution: {integrity: sha1-F6iK8JMYsiTXqPK4KiYe2lUP42k=} peerDependencies: @@ -36647,6 +36658,10 @@ packages: peerDependencies: react: 17.0.2 + '@teambit/component.sources@0.0.3': + resolution: {integrity: sha512-ViWTWlsfbk9/FkaTsS5FIwgn+zJHQMm7MbjsUvLmFwTlflPFm6JMVKKheeeoPZLRfK9IkFVnK3de9rnO3OVo3A==} + engines: {node: '>=16.0.0'} + '@teambit/component.sources@file:scopes/component/sources': resolution: {directory: scopes/component/sources, type: directory} @@ -38552,6 +38567,9 @@ packages: '@teambit/git.modules.git-ignore@1.0.2': resolution: {integrity: sha512-0aLXxZQywXzuR2527KYd8JXRwIFFtRBqFtzhrpoxu2aWkadx5THYanG9wMXcDiXLtmuJCLW5h6WbrUmpPoWLvg==} + '@teambit/git.modules.ignore-file-reader@0.0.1': + resolution: {integrity: sha512-5ATXO9uaXg3rU6djriGv33nVo1QgRxqxDLuDccnGNueAOPbFiEcCwxOKhH35Vcgw19N61PD7Je10y2n1uNsVaw==} + '@teambit/git.modules.ignore-file-reader@file:scopes/git/modules/ignore-file-reader': resolution: {directory: scopes/git/modules/ignore-file-reader, type: directory} @@ -38641,6 +38659,9 @@ packages: '@teambit/harmony.envs.core-aspect-env@0.0.42': resolution: {integrity: sha512-SbrndCA+hfPStM2oVblapTxCJsa6zXwPeEN8zv8OMnNBaQUUu0G8G9OPdbCiaGk1Ni87BPKccRirzuibD3d3kQ==} + '@teambit/harmony.modules.concurrency@0.0.1': + resolution: {integrity: sha512-pMUABL0Dh+h6Ss4GKq9qIbV5GIJEEyZJwKDsWH+vCVtJAuf0BDfkpDezfPnwY6YFz7iu9xK31Rsdvc6OAGnSJg==} + '@teambit/harmony.modules.concurrency@file:scopes/harmony/modules/concurrency': resolution: {directory: scopes/harmony/modules/concurrency, type: directory} @@ -38986,24 +39007,53 @@ packages: '@teambit/legacy-component-log@file:components/legacy-component-log': resolution: {directory: components/legacy-component-log, type: directory} + '@teambit/legacy.analytics@0.0.8': + resolution: {integrity: sha512-6KqRsOP8lhNAcizSN9rT52MQcrNtEYUlQC4tSAJRBXUCVHrexGuqxqK5KzSgMFbZ2Wo3Q8kxNEmhrpnYBiXatQ==} + '@teambit/legacy.analytics@file:components/legacy/analytics': resolution: {directory: components/legacy/analytics, type: directory} + '@teambit/legacy.bit-map@0.0.6': + resolution: {integrity: sha512-tdF9k8xKquM1O41Zf1z405k678RmFYc9vwDKqfbOSTZxxfemc+E8h6LVFNO+QLyVnwuBkgwZn73p/ijl07186A==} + engines: {node: '>=16.0.0'} + + '@teambit/legacy.bit-map@0.0.7': + resolution: {integrity: sha512-Z9e6zXQ4WI9sQ+ytAi2IVDE3veYylbWodkvZ7N2uptBiY2GD+8SgLU64fXOWJzxqjSafamZLbhd/hcvbD7/Khg==} + engines: {node: '>=16.0.0'} + '@teambit/legacy.bit-map@file:components/legacy/bit-map': resolution: {directory: components/legacy/bit-map, type: directory} + '@teambit/legacy.cli.prompts@0.0.1': + resolution: {integrity: sha512-cMcLQMdkWzdU0aFmk/mH242ocqvL6VQ+ayU+vSC3W40aIaw68EUzIp9roSnOxdTUvQRsUoEtHVfZpNhFn3Jiyw==} + '@teambit/legacy.cli.prompts@file:components/legacy/cli/prompts': resolution: {directory: components/legacy/cli/prompts, type: directory} '@teambit/legacy.component-diff@file:components/legacy/component-diff': resolution: {directory: components/legacy/component-diff, type: directory} + '@teambit/legacy.component-list@0.0.4': + resolution: {integrity: sha512-v2HJfDWIONyS+pkHAa4QNfxke1+khmpGrIM+J+k5bQAf1JVD6pFCuM2NGrJStQYct5jUfZlqsGUizFs4N7SnyQ==} + engines: {node: '>=16.0.0'} + '@teambit/legacy.component-list@file:components/legacy/component-list': resolution: {directory: components/legacy/component-list, type: directory} + '@teambit/legacy.scope-api@0.0.5': + resolution: {integrity: sha512-pFTU1792MJjp46qryN17/HGM0HMdSTiSus7CeeX8OAnaLMtgLKTxZTPejwRzP7bDsWoullNETqCXXp9rmyZ7kg==} + '@teambit/legacy.scope-api@file:components/legacy/scope-api': resolution: {directory: components/legacy/scope-api, type: directory} + '@teambit/legacy.utils@0.0.3': + resolution: {integrity: sha512-LpXIGpMwf7xvlWpcqAjggKe3iNSLGExaT5yb5VdvnO8k04bE1BSn8ulg7Y0+O6DQyx8lkPJWKrsfx4CGVzRxBg==} + engines: {node: '>=16.0.0'} + + '@teambit/legacy.utils@0.0.4': + resolution: {integrity: sha512-wNAl02lXoVRoWOo4iAVFIA9qMNR2Z3EiFtclKVQeBXTVKCJf+P9iLQ4ntZrAnCsB4xGphUoD3B0D9tYEeV5BhQ==} + engines: {node: '>=16.0.0'} + '@teambit/legacy.utils@file:components/legacy/utils': resolution: {directory: components/legacy/utils, type: directory} @@ -39198,6 +39248,9 @@ packages: '@teambit/pkg.content.packages-overview@1.95.9': resolution: {integrity: sha1-zWayNWQaoC66R1elFFytwR1vaLQ=} + '@teambit/pkg.modules.component-package-name@0.0.3': + resolution: {integrity: sha512-kJPHPB8DgMsQoA7NHfbYJsrL1c4IcbxgBzl0HZNuSySbXYkKviy2/hulXG353QcJOVLIYH7URIbS7L8TeHDTtw==} + '@teambit/pkg.modules.component-package-name@file:components/modules/component-package-name': resolution: {directory: components/modules/component-package-name, type: directory} @@ -39856,10 +39909,6 @@ packages: resolution: {integrity: sha512-vuA+r0Iwx5seH/cyZ6qK5BhLB7yFT5Wge5BEWwu5LZyDHQnyY31G1qwK6QGJRRqcGJ8aYpRsFA9U2g56Nh1uLQ==} engines: {node: '>=12.22.0'} - '@teambit/toolbox.fs.hard-link-directory@0.0.17': - resolution: {integrity: sha512-6I2kk8cHKRUWNATARejAwiBXhAP5MYB9I5/OU0LdHj6L+m83gjp/mgx26ge7ZBKy4Hbpm2HFku9C75PIQmPF2A==} - engines: {node: '>=12.22.0'} - '@teambit/toolbox.fs.hard-link-directory@0.0.21': resolution: {integrity: sha512-+nMapOEAaT2iarwzYTJp7GM0PXx88gFvpZWBg0+W8ZPN5pzkChM2GVjbIW704sB7QcMxQ4bnC9yDNOvOgqr+AA==} engines: {node: '>=12.22.0'} @@ -39867,6 +39916,9 @@ packages: '@teambit/toolbox.fs.hard-link-directory@file:scopes/toolbox/fs/hard-link-directory': resolution: {directory: scopes/toolbox/fs/hard-link-directory, type: directory} + '@teambit/toolbox.fs.is-dir-empty@0.0.1': + resolution: {integrity: sha512-oACrrhBapTRCxDGRP69wiPdOsQSZ1HPJR/d04jg7NkCztgpxNgzhTHr9y8MnNDrFHAirAlKhQ1SF/k+/2gMaAA==} + '@teambit/toolbox.fs.is-dir-empty@file:scopes/toolbox/fs/is-dir-empty': resolution: {directory: scopes/toolbox/fs/is-dir-empty, type: directory} @@ -39879,6 +39931,9 @@ packages: '@teambit/toolbox.fs.readdir-skip-system-files@0.0.2': resolution: {integrity: sha512-30UuGkixM/z+6ymos80WBGP6Cg7ZuJwyiLU9C5YLxlLL9R3rjZlHKrYt8wW+UgeREe5Ol4ltz60ByjWJVN2bTg==} + '@teambit/toolbox.fs.remove-empty-dir@0.0.1': + resolution: {integrity: sha512-AsvrHGnU6aFP+lfRWokdeon75aTg7IRkYECleU7dIeXrKcE1i7kusFZho8gyXDSsv0//rLpc19YZGC8w+GAe+A==} + '@teambit/toolbox.fs.remove-empty-dir@file:scopes/toolbox/fs/remove-empty-dir': resolution: {directory: scopes/toolbox/fs/remove-empty-dir, type: directory} @@ -39916,6 +39971,9 @@ packages: '@teambit/toolbox.path.path@0.0.1': resolution: {integrity: sha512-W/dF43nmur9GAap4TrN9pEcNNOgZJnPoFrMk1nwyqHPF9f9TuxuP+yCQiH7Atlc+6DD8RvMu6GgAsRqpOBLQMQ==} + '@teambit/toolbox.path.path@0.0.2': + resolution: {integrity: sha512-I/s91R3V8eYw9Ey8t6iIdL47FWki6/i08uK7CeqpiCDutCm+AF2z8QCJhSEowqHRA66D/w4kTkr9MDQVV9Vk5A==} + '@teambit/toolbox.path.path@file:scopes/toolbox/path/path': resolution: {directory: scopes/toolbox/path/path, type: directory} @@ -39925,6 +39983,9 @@ packages: '@teambit/toolbox.performance.v8-cache@file:scopes/toolbox/performance/v8-cache': resolution: {directory: scopes/toolbox/performance/v8-cache, type: directory} + '@teambit/toolbox.promise.map-pool@0.0.1': + resolution: {integrity: sha512-2+iiiDUGLy81cfAb27L6PCJ9sVuXtPkaXKaMFqSvQ3BEmEIWN8MofiDAZZOqeCMWST7yoio0poqUwFiAwHeVpg==} + '@teambit/toolbox.promise.map-pool@file:scopes/toolbox/promise/map-pool': resolution: {directory: scopes/toolbox/promise/map-pool, type: directory} @@ -39946,6 +40007,9 @@ packages: '@teambit/toolbox.string.ellipsis@file:scopes/toolbox/string/ellipsis': resolution: {directory: scopes/toolbox/string/ellipsis, type: directory} + '@teambit/toolbox.string.eol@0.0.1': + resolution: {integrity: sha512-zplRjWpQbxozyL2RMspq1WUnBrF9/wubcRSZS+TNRtQulVjve94Dn7reixQjwoI48J3gNXtOIiPdoN9dzzhTmA==} + '@teambit/toolbox.string.eol@file:scopes/toolbox/string/eol': resolution: {directory: scopes/toolbox/string/eol, type: directory} @@ -40648,6 +40712,9 @@ packages: '@teambit/workspace.modules.node-modules-linker@file:scopes/workspace/modules/node-modules-linker': resolution: {directory: scopes/workspace/modules/node-modules-linker, type: directory} + '@teambit/workspace.root-components@1.0.0': + resolution: {integrity: sha512-GTxJNRzsCcFdhQpaTUxujpfh3iHIQvtLBPyiODGh0ER7EFLBtSX8170oov/oZp6FwDKRFC/1G1tVRC0GHM8yCw==} + '@teambit/workspace.testing.mock-workspace@file:scopes/workspace/testing/mock-workspace': resolution: {directory: scopes/workspace/testing/mock-workspace, type: directory} @@ -49795,7 +49862,6 @@ packages: engines: {node: '>=0.6.0', teleport: '>=0.2.0'} deprecated: |- You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other. - (For a CapTP with native promises, see @endo/eventual-send and @endo/captp) qs@6.10.3: @@ -54059,7 +54125,7 @@ snapshots: '@babel/plugin-proposal-object-rest-spread@7.11.0(@babel/core@7.11.6)': dependencies: '@babel/core': 7.11.6 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/helper-plugin-utils': 7.10.4 '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.11.6) '@babel/plugin-transform-parameters': 7.24.7(@babel/core@7.11.6) @@ -62541,24 +62607,6 @@ snapshots: '@teambit/bit-error@0.0.404': {} - '@teambit/bit-roots@0.0.133(react-dom@17.0.2(react@17.0.2))(react@17.0.2)': - dependencies: - '@babel/runtime': 7.20.0 - '@teambit/toolbox.fs.hard-link-directory': 0.0.17 - core-js: 3.13.0 - fs-extra: 10.0.0 - react: 17.0.2 - react-dom: 17.0.2(react@17.0.2) - - '@teambit/bit-roots@0.0.133(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': - dependencies: - '@babel/runtime': 7.20.0 - '@teambit/toolbox.fs.hard-link-directory': 0.0.17 - core-js: 3.13.0 - fs-extra: 10.0.0 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - '@teambit/bit.content.what-is-bit@1.96.2(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(react-dom@17.0.2(react@17.0.2))(react@17.0.2)': dependencies: '@mdx-js/react': 1.6.22(react@17.0.2) @@ -62594,7 +62642,7 @@ snapshots: '@teambit/mdx.ui.mdx-scope-context': 1.0.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/scope.modules.find-scope-path': 0.0.1 '@teambit/ui-foundation.ui.navigation.react-router-adapter': 6.1.1(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react-router-dom@6.3.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(react@17.0.2) - '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker '@types/react': 17.0.80 '@types/react-dom': 17.0.25 '@yarnpkg/cli': 3.6.1(@yarnpkg/core@3.5.2(typanion@3.14.0)) @@ -62649,7 +62697,7 @@ snapshots: '@teambit/mdx.ui.mdx-scope-context': 1.0.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/scope.modules.find-scope-path': 0.0.1 '@teambit/ui-foundation.ui.navigation.react-router-adapter': 6.1.1(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react-router-dom@6.3.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(react@17.0.2) - '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker '@types/react': 17.0.80 '@types/react-dom': 17.0.25 '@yarnpkg/cli': 3.6.1(@yarnpkg/core@3.5.2(typanion@3.14.0)) @@ -62870,9 +62918,9 @@ snapshots: '@teambit/bit-error': 0.0.404 '@teambit/component-id': 1.2.0 '@teambit/component.sources': file:scopes/component/sources - '@teambit/component.testing.mock-components': file:scopes/component/testing/mock-components(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/component.testing.mock-components': file:scopes/component/testing/mock-components '@teambit/harmony': 0.4.6 - '@teambit/harmony.testing.load-aspect': file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/harmony.testing.load-aspect': file:scopes/harmony/testing/load-aspect '@teambit/legacy.utils': file:components/legacy/utils '@teambit/mdx.ui.mdx-scope-context': 1.0.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/workspace.testing.mock-workspace': file:scopes/workspace/testing/mock-workspace @@ -63814,7 +63862,6 @@ snapshots: dependencies: '@mdx-js/react': 1.6.22(react@17.0.2) '@teambit/bit-error': 0.0.404 - '@teambit/bit-roots': 0.0.133(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/component-id': 1.2.0 '@teambit/component-issues': file:components/component-issues '@teambit/component.sources': file:scopes/component/sources @@ -63823,7 +63870,8 @@ snapshots: '@teambit/pkg.modules.component-package-name': file:components/modules/component-package-name '@teambit/toolbox.fs.hard-link-directory': file:scopes/toolbox/fs/hard-link-directory '@teambit/toolbox.path.path': file:scopes/toolbox/path/path - '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker + '@teambit/workspace.root-components': 1.0.0 '@types/react': 17.0.80 '@types/react-dom': 17.0.25 chalk: 2.4.2 @@ -64205,6 +64253,28 @@ snapshots: transitivePeerDependencies: - react-dom + '@teambit/component.sources@0.0.3': + dependencies: + '@teambit/bit-error': 0.0.404 + '@teambit/component-id': 1.2.0 + '@teambit/harmony.modules.concurrency': 0.0.1 + '@teambit/pkg.modules.component-package-name': 0.0.3 + '@teambit/toolbox.fs.remove-empty-dir': 0.0.1 + '@teambit/toolbox.path.path': 0.0.2 + '@teambit/toolbox.promise.map-pool': 0.0.1 + '@teambit/toolbox.string.eol': 0.0.1 + bluebird: 3.7.2 + detect-indent: 5.0.0 + detect-newline: 3.1.0 + fs-extra: 10.0.0 + lodash: 4.17.21 + p-map: 4.0.0 + p-map-series: 2.1.0 + stringify-package: 1.0.1 + vinyl: 2.2.1 + vinyl-file: 3.0.0 + write-file-atomic: 5.0.0 + '@teambit/component.sources@file:scopes/component/sources': dependencies: '@mdx-js/react': 1.6.22(react@17.0.2) @@ -64236,15 +64306,12 @@ snapshots: vinyl-file: 3.0.0 write-file-atomic: 5.0.0 - '@teambit/component.testing.mock-components@file:scopes/component/testing/mock-components(react-dom@17.0.2(react@17.0.2))(react@17.0.2)': + '@teambit/component.testing.mock-components@file:scopes/component/testing/mock-components': dependencies: '@teambit/component-id': 1.2.0 - '@teambit/harmony.testing.load-aspect': file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/harmony.testing.load-aspect': file:scopes/harmony/testing/load-aspect fs-extra: 10.0.0 p-map-series: 2.1.0 - transitivePeerDependencies: - - react - - react-dom '@teambit/component.ui.artifacts.artifacts-tree@0.0.26(@apollo/client@3.10.7(@types/react@17.0.80)(graphql@15.8.0)(react-dom@17.0.2(react@17.0.2))(react@17.0.2)(subscriptions-transport-ws@0.9.18(bufferutil@4.0.3)(graphql@15.8.0)(utf-8-validate@5.0.5)))(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react-router-dom@6.24.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(react@17.0.2)': dependencies: @@ -66735,9 +66802,9 @@ snapshots: '@teambit/component-package-version': file:scopes/component/component-package-version '@teambit/component-version': 1.0.3 '@teambit/component.sources': file:scopes/component/sources - '@teambit/component.testing.mock-components': file:scopes/component/testing/mock-components(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/component.testing.mock-components': file:scopes/component/testing/mock-components '@teambit/harmony': 0.4.6 - '@teambit/harmony.testing.load-aspect': file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/harmony.testing.load-aspect': file:scopes/harmony/testing/load-aspect '@teambit/legacy.bit-map': file:components/legacy/bit-map '@teambit/legacy.utils': file:components/legacy/utils '@teambit/mdx.ui.mdx-scope-context': 1.0.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -66788,7 +66855,6 @@ snapshots: '@pnpm/network.ca-file': 3.0.0 '@pnpm/types': 11.0.0 '@teambit/bit-error': 0.0.404 - '@teambit/bit-roots': 0.0.133(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/bvm.path': 0.1.2 '@teambit/component-id': 1.2.0 '@teambit/component-issues': file:components/component-issues @@ -66805,7 +66871,8 @@ snapshots: '@teambit/toolbox.fs.link-or-symlink': file:scopes/toolbox/fs/link-or-symlink '@teambit/toolbox.object.sorter': 0.0.2 '@teambit/toolbox.path.path': file:scopes/toolbox/path/path - '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker + '@teambit/workspace.root-components': 1.0.0 '@types/react': 17.0.80 '@types/react-dom': 17.0.25 chalk: 2.4.2 @@ -66843,7 +66910,6 @@ snapshots: '@pnpm/network.ca-file': 3.0.0 '@pnpm/types': 11.0.0 '@teambit/bit-error': 0.0.404 - '@teambit/bit-roots': 0.0.133(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/bvm.path': 0.1.2 '@teambit/component-id': 1.2.0 '@teambit/component-issues': file:components/component-issues @@ -66860,7 +66926,8 @@ snapshots: '@teambit/toolbox.fs.link-or-symlink': file:scopes/toolbox/fs/link-or-symlink '@teambit/toolbox.object.sorter': 0.0.2 '@teambit/toolbox.path.path': file:scopes/toolbox/path/path - '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker + '@teambit/workspace.root-components': 1.0.0 '@types/react': 17.0.80 '@types/react-dom': 17.0.25 chalk: 2.4.2 @@ -69151,7 +69218,7 @@ snapshots: '@teambit/legacy.scope-api': file:components/legacy/scope-api '@teambit/legacy.utils': file:components/legacy/utils '@teambit/mdx.ui.mdx-scope-context': 1.0.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) - '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker '@types/react': 17.0.80 '@types/react-dom': 17.0.25 chalk: 2.4.2 @@ -69255,7 +69322,7 @@ snapshots: '@teambit/mdx.ui.mdx-scope-context': 1.0.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/pkg.modules.component-package-name': file:components/modules/component-package-name '@teambit/toolbox.path.path': file:scopes/toolbox/path/path - '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker '@types/react': 17.0.80 '@types/react-dom': 17.0.25 camelcase: 6.2.0 @@ -69278,6 +69345,11 @@ snapshots: '@teambit/git.modules.git-ignore@1.0.2': {} + '@teambit/git.modules.ignore-file-reader@0.0.1': + dependencies: + fs-extra: 10.0.0 + parse-gitignore: 1.0.1 + '@teambit/git.modules.ignore-file-reader@file:scopes/git/modules/ignore-file-reader': dependencies: fs-extra: 10.0.0 @@ -70668,6 +70740,8 @@ snapshots: - webpack-hot-middleware - webpack-plugin-serve + '@teambit/harmony.modules.concurrency@0.0.1': {} + '@teambit/harmony.modules.concurrency@file:scopes/harmony/modules/concurrency': {} '@teambit/harmony.modules.feature-toggle@0.0.4': {} @@ -70692,14 +70766,11 @@ snapshots: '@teambit/harmony.modules.resolved-component@file:scopes/harmony/modules/resolved-component': {} - '@teambit/harmony.testing.load-aspect@file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2)': + '@teambit/harmony.testing.load-aspect@file:scopes/harmony/testing/load-aspect': dependencies: '@teambit/harmony': 0.4.6 '@teambit/scope.modules.find-scope-path': 0.0.1 - '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) - transitivePeerDependencies: - - react - - react-dom + '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker '@teambit/harmony.ui.aspect-box@file:scopes/harmony/ui/aspect-box(react-dom@17.0.2(react@17.0.2))(react@17.0.2)': dependencies: @@ -70866,7 +70937,6 @@ snapshots: '@pnpm/semver-diff': 1.1.0 '@pnpm/types': 11.0.0 '@teambit/bit-error': 0.0.404 - '@teambit/bit-roots': 0.0.133(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/component-issues': file:components/component-issues '@teambit/component-package-version': file:scopes/component/component-package-version '@teambit/dependencies.fs.linked-dependencies': file:scopes/dependencies/fs/linked-dependencies @@ -70874,7 +70944,8 @@ snapshots: '@teambit/mdx.ui.mdx-scope-context': 1.0.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/pkg.modules.component-package-name': file:components/modules/component-package-name '@teambit/toolbox.time.time-format': file:scopes/toolbox/time/time-format - '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker + '@teambit/workspace.root-components': 1.0.0 '@types/react': 17.0.80 '@types/react-dom': 17.0.25 chalk: 2.4.2 @@ -70920,7 +70991,7 @@ snapshots: '@teambit/legacy.utils': file:components/legacy/utils '@teambit/mdx.ui.mdx-scope-context': 1.0.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/pkg.modules.component-package-name': file:components/modules/component-package-name - '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker '@types/react': 17.0.80 '@types/react-dom': 17.0.25 chalk: 2.4.2 @@ -71831,12 +71902,12 @@ snapshots: '@teambit/cloud.modules.get-cloud-user': file:scopes/cloud/modules/get-cloud-user '@teambit/component-id': 1.2.0 '@teambit/component-version': 1.0.3 - '@teambit/component.testing.mock-components': file:scopes/component/testing/mock-components(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/component.testing.mock-components': file:scopes/component/testing/mock-components '@teambit/design.ui.pages.not-found': 0.0.371(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/harmony': 0.4.6 '@teambit/harmony.modules.concurrency': file:scopes/harmony/modules/concurrency '@teambit/harmony.modules.feature-toggle': file:scopes/harmony/modules/feature-toggle - '@teambit/harmony.testing.load-aspect': file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/harmony.testing.load-aspect': file:scopes/harmony/testing/load-aspect '@teambit/lane-id': 0.0.311 '@teambit/lanes.entities.lane-diff': file:scopes/lanes/entities/lane-diff '@teambit/lanes.hooks.use-lanes': file:components/hooks/use-lanes(@apollo/client@3.10.7(@types/react@17.0.80)(graphql@15.8.0)(react-dom@17.0.2(react@17.0.2))(react@17.0.2)(subscriptions-transport-ws@0.9.18(bufferutil@4.0.3)(graphql@15.8.0)(utf-8-validate@5.0.5)))(@teambit/base-react.navigation.link@2.0.31(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -71894,12 +71965,12 @@ snapshots: '@teambit/cloud.modules.get-cloud-user': file:scopes/cloud/modules/get-cloud-user '@teambit/component-id': 1.2.0 '@teambit/component-version': 1.0.3 - '@teambit/component.testing.mock-components': file:scopes/component/testing/mock-components(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/component.testing.mock-components': file:scopes/component/testing/mock-components '@teambit/design.ui.pages.not-found': 0.0.371(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/harmony': 0.4.6 '@teambit/harmony.modules.concurrency': file:scopes/harmony/modules/concurrency '@teambit/harmony.modules.feature-toggle': file:scopes/harmony/modules/feature-toggle - '@teambit/harmony.testing.load-aspect': file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/harmony.testing.load-aspect': file:scopes/harmony/testing/load-aspect '@teambit/lane-id': 0.0.311 '@teambit/lanes.entities.lane-diff': file:scopes/lanes/entities/lane-diff '@teambit/lanes.hooks.use-lanes': file:components/hooks/use-lanes(@apollo/client@3.10.7(@types/react@17.0.80)(graphql@15.8.0)(react-dom@17.0.2(react@17.0.2))(react@17.0.2)(subscriptions-transport-ws@0.9.19(bufferutil@4.0.3)(graphql@15.8.0)(utf-8-validate@5.0.5)))(@teambit/base-react.navigation.link@2.0.31(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) @@ -72013,6 +72084,18 @@ snapshots: '@teambit/legacy-component-log@file:components/legacy-component-log': {} + '@teambit/legacy.analytics@0.0.8(encoding@0.1.13)': + dependencies: + '@teambit/legacy.cli.prompts': 0.0.1 + node-fetch: 2.6.7(encoding@0.1.13) + object-hash: 2.1.1 + ramda: 0.27.1 + serialize-error: 5.0.0 + uniqid: 5.3.0 + yn: 2.0.0 + transitivePeerDependencies: + - encoding + '@teambit/legacy.analytics@file:components/legacy/analytics(encoding@0.1.13)': dependencies: '@teambit/legacy.cli.prompts': file:components/legacy/cli/prompts @@ -72025,6 +72108,44 @@ snapshots: transitivePeerDependencies: - encoding + '@teambit/legacy.bit-map@0.0.6': + dependencies: + '@teambit/bit-error': 0.0.404 + '@teambit/component-id': 1.2.0 + '@teambit/git.modules.ignore-file-reader': 0.0.1 + '@teambit/lane-id': 0.0.311 + '@teambit/legacy-bit-id': 1.1.1 + '@teambit/legacy.utils': 0.0.3 + '@teambit/toolbox.object.sorter': 0.0.2 + '@teambit/toolbox.path.path': 0.0.2 + chalk: 2.4.2 + comment-json: 3.0.3 + fs-extra: 10.0.0 + globby: 11.0.1 + ignore: 3.3.10 + lodash: 4.17.21 + object-hash: 2.1.1 + ramda: 0.27.1 + + '@teambit/legacy.bit-map@0.0.7': + dependencies: + '@teambit/bit-error': 0.0.404 + '@teambit/component-id': 1.2.0 + '@teambit/git.modules.ignore-file-reader': 0.0.1 + '@teambit/lane-id': 0.0.311 + '@teambit/legacy-bit-id': 1.1.1 + '@teambit/legacy.utils': 0.0.4 + '@teambit/toolbox.object.sorter': 0.0.2 + '@teambit/toolbox.path.path': 0.0.2 + chalk: 2.4.2 + comment-json: 3.0.3 + fs-extra: 10.0.0 + globby: 11.0.1 + ignore: 3.3.10 + lodash: 4.17.21 + object-hash: 2.1.1 + ramda: 0.27.1 + '@teambit/legacy.bit-map@file:components/legacy/bit-map': dependencies: '@mdx-js/react': 1.6.22(react@17.0.2) @@ -72053,6 +72174,12 @@ snapshots: react-dom: 17.0.2(react@17.0.2) react-router-dom: 6.24.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/legacy.cli.prompts@0.0.1': + dependencies: + '@teambit/bit-error': 0.0.404 + chalk: 2.4.2 + prompt: 1.1.0 + '@teambit/legacy.cli.prompts@file:components/legacy/cli/prompts': dependencies: '@teambit/bit-error': 0.0.404 @@ -72076,6 +72203,15 @@ snapshots: semver: 7.5.2 tempy: 1.0.1 + '@teambit/legacy.component-list@0.0.4': + dependencies: + '@teambit/component-id': 1.2.0 + '@teambit/legacy.bit-map': 0.0.7 + '@teambit/legacy.utils': 0.0.4 + lodash: 4.17.21 + p-filter: 2.1.0 + ramda: 0.27.1 + '@teambit/legacy.component-list@file:components/legacy/component-list': dependencies: '@mdx-js/react': 1.6.22(react@17.0.2) @@ -72094,6 +72230,14 @@ snapshots: react-dom: 17.0.2(react@17.0.2) react-router-dom: 6.24.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/legacy.scope-api@0.0.5': + dependencies: + '@teambit/bit-error': 0.0.404 + '@teambit/component-id': 1.2.0 + '@teambit/lane-id': 0.0.311 + p-queue: 6.6.2 + semver: 7.5.2 + '@teambit/legacy.scope-api@file:components/legacy/scope-api': dependencies: '@teambit/bit-error': 0.0.404 @@ -72102,6 +72246,36 @@ snapshots: p-queue: 6.6.2 semver: 7.5.2 + '@teambit/legacy.utils@0.0.3': + dependencies: + '@teambit/bit-error': 0.0.404 + '@teambit/component-id': 1.2.0 + '@teambit/toolbox.fs.readdir-skip-system-files': 0.0.2 + '@teambit/toolbox.path.path': 0.0.2 + checksum: 0.1.1 + fs-extra: 10.0.0 + glob: 7.1.6 + lodash: 4.17.21 + ramda: 0.27.1 + semver: 7.5.2 + string-format: 0.5.0 + write-file-atomic: 5.0.0 + + '@teambit/legacy.utils@0.0.4': + dependencies: + '@teambit/bit-error': 0.0.404 + '@teambit/component-id': 1.2.0 + '@teambit/toolbox.fs.readdir-skip-system-files': 0.0.2 + '@teambit/toolbox.path.path': 0.0.2 + checksum: 0.1.1 + fs-extra: 10.0.0 + glob: 7.1.6 + lodash: 4.17.21 + ramda: 0.27.1 + semver: 7.5.2 + string-format: 0.5.0 + write-file-atomic: 5.0.0 + '@teambit/legacy.utils@file:components/legacy/utils': dependencies: '@mdx-js/react': 1.6.22(react@17.0.2) @@ -72444,10 +72618,10 @@ snapshots: '@mdx-js/react': 1.6.22(react@17.0.2) '@teambit/bit-error': 0.0.404 '@teambit/component-id': 1.2.0 - '@teambit/component.testing.mock-components': file:scopes/component/testing/mock-components(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/component.testing.mock-components': file:scopes/component/testing/mock-components '@teambit/harmony': 0.4.6 '@teambit/harmony.modules.get-basic-log': file:scopes/harmony/modules/get-basic-log - '@teambit/harmony.testing.load-aspect': file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/harmony.testing.load-aspect': file:scopes/harmony/testing/load-aspect '@teambit/lane-id': 0.0.311 '@teambit/legacy.bit-map': file:components/legacy/bit-map '@teambit/legacy.cli.prompts': file:components/legacy/cli/prompts @@ -72527,7 +72701,7 @@ snapshots: '@teambit/legacy.bit-map': file:components/legacy/bit-map '@teambit/legacy.utils': file:components/legacy/utils '@teambit/mdx.ui.mdx-scope-context': 1.0.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) - '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker '@types/react': 17.0.80 '@types/react-dom': 17.0.25 chalk: 2.4.2 @@ -72996,6 +73170,12 @@ snapshots: - react - react-dom + '@teambit/pkg.modules.component-package-name@0.0.3': + dependencies: + '@teambit/component-id': 1.2.0 + '@teambit/legacy.utils': 0.0.4 + '@teambit/toolbox.path.path': 0.0.2 + '@teambit/pkg.modules.component-package-name@file:components/modules/component-package-name': dependencies: '@teambit/component-id': 1.2.0 @@ -73024,7 +73204,7 @@ snapshots: '@teambit/legacy.utils': file:components/legacy/utils '@teambit/mdx.ui.mdx-scope-context': 1.0.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/ui-foundation.ui.use-box.menu': 1.0.10(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) - '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker '@types/react': 17.0.80 '@types/react-dom': 17.0.25 chalk: 2.4.2 @@ -81438,12 +81618,12 @@ snapshots: dependencies: '@mdx-js/react': 1.6.22(react@17.0.2) '@teambit/bit-error': 0.0.404 - '@teambit/component.testing.mock-components': file:scopes/component/testing/mock-components(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/component.testing.mock-components': file:scopes/component/testing/mock-components '@teambit/harmony': 0.4.6 - '@teambit/harmony.testing.load-aspect': file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/harmony.testing.load-aspect': file:scopes/harmony/testing/load-aspect '@teambit/legacy-bit-id': 1.1.1 '@teambit/mdx.ui.mdx-scope-context': 1.0.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) - '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker '@teambit/workspace.testing.mock-workspace': file:scopes/workspace/testing/mock-workspace '@types/react': 17.0.80 '@types/react-dom': 17.0.25 @@ -81464,7 +81644,7 @@ snapshots: '@teambit/base-react.navigation.link': 2.0.31(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/defender.prettier.config-mutator': file:scopes/defender/prettier-config-mutator '@teambit/harmony': 0.4.6 - '@teambit/harmony.testing.load-aspect': file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/harmony.testing.load-aspect': file:scopes/harmony/testing/load-aspect '@teambit/mdx.ui.mdx-scope-context': 1.0.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/semantics.entities.semantic-schema': file:components/entities/semantic-schema '@teambit/workspace.testing.mock-workspace': file:scopes/workspace/testing/mock-workspace @@ -81881,19 +82061,19 @@ snapshots: '@teambit/component-issues': file:components/component-issues '@teambit/component-version': 1.0.3 '@teambit/component.sources': file:scopes/component/sources - '@teambit/component.testing.mock-components': file:scopes/component/testing/mock-components(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/component.testing.mock-components': file:scopes/component/testing/mock-components '@teambit/graph.cleargraph': 0.0.11 '@teambit/harmony': 0.4.6 '@teambit/harmony.modules.concurrency': file:scopes/harmony/modules/concurrency '@teambit/harmony.modules.get-basic-log': file:scopes/harmony/modules/get-basic-log - '@teambit/harmony.testing.load-aspect': file:scopes/harmony/testing/load-aspect(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/harmony.testing.load-aspect': file:scopes/harmony/testing/load-aspect '@teambit/lane-id': 0.0.311 '@teambit/legacy.component-list': file:components/legacy/component-list '@teambit/mdx.ui.mdx-scope-context': 1.0.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/pkg.modules.semver-helper': file:scopes/pkg/modules/semver-helper '@teambit/toolbox.crypto.sha1': file:components/crypto/sha1 '@teambit/toolbox.promise.map-pool': file:scopes/toolbox/promise/map-pool - '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker '@teambit/workspace.testing.mock-workspace': file:scopes/workspace/testing/mock-workspace '@types/react': 17.0.80 '@types/react-dom': 17.0.25 @@ -82099,12 +82279,6 @@ snapshots: resolve-link-target: 1.0.1 symlink-dir: 5.2.1 - '@teambit/toolbox.fs.hard-link-directory@0.0.17': - dependencies: - fs-extra: 10.0.0 - resolve-link-target: 1.0.1 - symlink-dir: 5.2.1 - '@teambit/toolbox.fs.hard-link-directory@0.0.21': dependencies: fs-extra: 10.0.0 @@ -82117,6 +82291,10 @@ snapshots: resolve-link-target: 1.0.1 symlink-dir: 5.2.1 + '@teambit/toolbox.fs.is-dir-empty@0.0.1': + dependencies: + '@teambit/toolbox.fs.readdir-skip-system-files': 0.0.2 + '@teambit/toolbox.fs.is-dir-empty@file:scopes/toolbox/fs/is-dir-empty': dependencies: '@teambit/toolbox.fs.readdir-skip-system-files': 0.0.2 @@ -82136,6 +82314,11 @@ snapshots: dependencies: fs-extra: 10.0.0 + '@teambit/toolbox.fs.remove-empty-dir@0.0.1': + dependencies: + '@teambit/toolbox.fs.is-dir-empty': 0.0.1 + fs-extra: 10.0.0 + '@teambit/toolbox.fs.remove-empty-dir@file:scopes/toolbox/fs/remove-empty-dir': dependencies: '@teambit/toolbox.fs.is-dir-empty': file:scopes/toolbox/fs/is-dir-empty @@ -82181,6 +82364,10 @@ snapshots: dependencies: normalize-path: 3.0.0 + '@teambit/toolbox.path.path@0.0.2': + dependencies: + normalize-path: 3.0.0 + '@teambit/toolbox.path.path@file:scopes/toolbox/path/path': dependencies: normalize-path: 3.0.0 @@ -82189,6 +82376,8 @@ snapshots: '@teambit/toolbox.performance.v8-cache@file:scopes/toolbox/performance/v8-cache': {} + '@teambit/toolbox.promise.map-pool@0.0.1': {} + '@teambit/toolbox.promise.map-pool@file:scopes/toolbox/promise/map-pool': {} '@teambit/toolbox.string.capitalize@file:scopes/toolbox/string/capitalize': {} @@ -82201,6 +82390,10 @@ snapshots: '@teambit/toolbox.string.ellipsis@file:scopes/toolbox/string/ellipsis': {} + '@teambit/toolbox.string.eol@0.0.1': + dependencies: + isbinaryfile: 4.0.6 + '@teambit/toolbox.string.eol@file:scopes/toolbox/string/eol': dependencies: isbinaryfile: 4.0.6 @@ -82254,7 +82447,7 @@ snapshots: '@teambit/legacy.bit-map': file:components/legacy/bit-map '@teambit/legacy.utils': file:components/legacy/utils '@teambit/mdx.ui.mdx-scope-context': 1.0.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) - '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker '@types/react': 17.0.80 '@types/react-dom': 17.0.25 array-difference: 0.0.2 @@ -83941,9 +84134,8 @@ snapshots: lodash: 4.17.21 minimatch: 3.0.5 - '@teambit/workspace.modules.node-modules-linker@file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2)': + '@teambit/workspace.modules.node-modules-linker@file:scopes/workspace/modules/node-modules-linker': dependencies: - '@teambit/bit-roots': 0.0.133(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/component-id': 1.2.0 '@teambit/component-issues': file:components/component-issues '@teambit/component-package-version': file:scopes/component/component-package-version @@ -83952,12 +84144,15 @@ snapshots: '@teambit/legacy.utils': file:components/legacy/utils '@teambit/pkg.modules.component-package-name': file:components/modules/component-package-name '@teambit/toolbox.path.path': file:scopes/toolbox/path/path + '@teambit/workspace.root-components': 1.0.0 fs-extra: 10.0.0 lodash: 4.17.21 p-map-series: 2.1.0 - transitivePeerDependencies: - - react - - react-dom + + '@teambit/workspace.root-components@1.0.0': + dependencies: + '@teambit/toolbox.fs.hard-link-directory': 0.0.21 + fs-extra: 11.2.0 '@teambit/workspace.testing.mock-workspace@file:scopes/workspace/testing/mock-workspace': dependencies: @@ -84067,7 +84262,7 @@ snapshots: '@teambit/ui-foundation.ui.top-bar': 0.0.514(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react-router-dom@6.24.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(react@17.0.2) '@teambit/ui-foundation.ui.tree.drawer': 0.0.518(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/workspace.modules.match-pattern': file:scopes/workspace/modules/match-pattern - '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker '@teambit/workspace.ui.empty-workspace': 0.0.508(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/workspace.ui.workspace-component-card': file:components/ui/workspace-component-card(@teambit/base-react.navigation.link@2.0.31(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@types/react': 17.0.80 @@ -84165,7 +84360,7 @@ snapshots: '@teambit/ui-foundation.ui.top-bar': 0.0.514(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react-router-dom@6.24.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(react@17.0.2) '@teambit/ui-foundation.ui.tree.drawer': 0.0.518(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/workspace.modules.match-pattern': file:scopes/workspace/modules/match-pattern - '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker(react-dom@17.0.2(react@17.0.2))(react@17.0.2) + '@teambit/workspace.modules.node-modules-linker': file:scopes/workspace/modules/node-modules-linker '@teambit/workspace.ui.empty-workspace': 0.0.508(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@teambit/workspace.ui.workspace-component-card': file:components/ui/workspace-component-card(@teambit/base-react.navigation.link@2.0.31(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@types/react@17.0.80)(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(@testing-library/react@12.1.5(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(react-dom@17.0.2(react@17.0.2))(react@17.0.2) '@types/react': 17.0.80 @@ -97270,7 +97465,7 @@ snapshots: dependencies: object-assign: 4.1.1 react: 17.0.2 - react-is: 17.0.2 + react-is: 18.3.1 react-syntax-highlighter@13.5.3(react@17.0.2): dependencies: @@ -100954,7 +101149,7 @@ snapshots: require-directory: 2.1.1 string-width: 4.2.3 y18n: 5.0.8 - yargs-parser: 20.2.9 + yargs-parser: 20.2.4 yargs@17.0.1: dependencies: diff --git a/scopes/compilation/compiler/workspace-compiler.ts b/scopes/compilation/compiler/workspace-compiler.ts index 6bdea2442d9b..55b11fd3abda 100644 --- a/scopes/compilation/compiler/workspace-compiler.ts +++ b/scopes/compilation/compiler/workspace-compiler.ts @@ -22,7 +22,7 @@ import { DependencyResolverMain } from '@teambit/dependency-resolver'; import { PathOsBasedAbsolute, PathOsBasedRelative } from '@teambit/toolbox.path.path'; import { componentIdToPackageName } from '@teambit/pkg.modules.component-package-name'; import { UiMain } from '@teambit/ui'; -import { readBitRootsDir } from '@teambit/bit-roots'; +import { readRootComponentsDir } from '@teambit/workspace.root-components'; import { groupBy, uniq } from 'lodash'; import type { PreStartOpts } from '@teambit/ui'; import { MultiCompiler } from '@teambit/multi-compiler'; @@ -148,7 +148,7 @@ ${this.compileErrors.map(formatError).join('\n')}`); const injectedDirs = await this.workspace.getInjectedDirs(this.component); if (injectedDirs.length > 0) return injectedDirs; - const rootDirs = await readBitRootsDir(this.workspace.path); + const rootDirs = await readRootComponentsDir(this.workspace.rootComponentsPath); return rootDirs.map((rootDir) => path.relative(this.workspace.path, path.join(rootDir, packageName))); } diff --git a/scopes/dependencies/dependency-resolver/dependency-resolver.main.runtime.ts b/scopes/dependencies/dependency-resolver/dependency-resolver.main.runtime.ts index 7209e60cdcf3..55b2466c036c 100644 --- a/scopes/dependencies/dependency-resolver/dependency-resolver.main.runtime.ts +++ b/scopes/dependencies/dependency-resolver/dependency-resolver.main.runtime.ts @@ -2,10 +2,10 @@ import multimatch from 'multimatch'; import mapSeries from 'p-map-series'; import { MainRuntime } from '@teambit/cli'; import { getAllCoreAspectsIds } from '@teambit/bit'; -import { getRelativeRootComponentDir } from '@teambit/bit-roots'; +import { getRootComponentDir } from '@teambit/workspace.root-components'; import { ComponentAspect, Component, ComponentMap, ComponentMain, IComponent } from '@teambit/component'; import type { ConfigMain } from '@teambit/config'; -import { join } from 'path'; +import { join, relative } from 'path'; import { compact, get, pick, uniq, omit, cloneDeep } from 'lodash'; import { ConfigAspect } from '@teambit/config'; import { EnvsAspect } from '@teambit/envs'; @@ -506,14 +506,23 @@ export class DependencyResolverMain { * Returns the location where the component is installed with its peer dependencies * This is used in cases you want to actually run the components and make sure all the dependencies (especially peers) are resolved correctly */ - getRuntimeModulePath(component: Component, isInWorkspace = false) { + getRuntimeModulePath( + component: Component, + options: { + workspacePath: string; + rootComponentsPath: string; + isInWorkspace?: boolean; + } + ) { if (!this.hasRootComponents()) { const modulePath = this.getModulePath(component); return modulePath; } const pkgName = this.getPackageName(component); + const rootComponentsRelativePath = relative(options.workspacePath, options.rootComponentsPath); + const getRelativeRootComponentDir = getRootComponentDir.bind(null, rootComponentsRelativePath ?? ''); const selfRootDir = getRelativeRootComponentDir( - !isInWorkspace ? component.id.toString() : component.id.toStringWithoutVersion() + options.isInWorkspace ? component.id.toStringWithoutVersion() : component.id.toString() ); // In case the component is it's own root we want to load it from it's own root folder if (fs.pathExistsSync(selfRootDir)) { diff --git a/scopes/dependencies/pnpm/lynx.ts b/scopes/dependencies/pnpm/lynx.ts index 9dfcbca462ce..8f587850517a 100644 --- a/scopes/dependencies/pnpm/lynx.ts +++ b/scopes/dependencies/pnpm/lynx.ts @@ -16,6 +16,7 @@ import { PackageManagerNetworkConfig, } from '@teambit/dependency-resolver'; import { BitError } from '@teambit/bit-error'; +import { BIT_ROOTS_DIR } from '@teambit/legacy/dist/constants'; import { MutatedProject, mutateModules, @@ -30,7 +31,7 @@ import { restartWorkerPool, finishWorkers } from '@pnpm/worker'; import { createPkgGraph } from '@pnpm/workspace.pkgs-graph'; import { PackageManifest, ProjectManifest, ReadPackageHook } from '@pnpm/types'; import { Logger } from '@teambit/logger'; -import { VIRTUAL_STORE_DIR_MAX_LENGTH } from '@teambit/dependencies.pnpm.dep-path' +import { VIRTUAL_STORE_DIR_MAX_LENGTH } from '@teambit/dependencies.pnpm.dep-path'; import toNerfDart from 'nerf-dart'; import { pnpmErrorToBitError } from './pnpm-error-to-bit-error'; import { readConfig } from './read-config'; @@ -410,7 +411,7 @@ function readPackageHook(pkg: PackageManifest, workspaceDir?: string): PackageMa return pkg; } // workspaceDir is set only for workspace packages - if (workspaceDir && !workspaceDir.includes('.bit_roots')) { + if (workspaceDir && !workspaceDir.includes(BIT_ROOTS_DIR)) { return readWorkspacePackageHook(pkg); } return readDependencyPackageHook(pkg); @@ -458,8 +459,10 @@ function readWorkspacePackageHook(pkg: PackageManifest): PackageManifest { } function groupPkgs(manifestsByPaths: Record, opts: { update?: boolean }) { - const pkgs = Object.entries(manifestsByPaths) - .map(([rootDir, manifest]) => ({ rootDir: rootDir as ProjectRootDir, manifest })); + const pkgs = Object.entries(manifestsByPaths).map(([rootDir, manifest]) => ({ + rootDir: rootDir as ProjectRootDir, + manifest, + })); const { graph } = createPkgGraph(pkgs); const chunks = sortPackages(graph as any); diff --git a/scopes/dependencies/pnpm/pnpm.package-manager.ts b/scopes/dependencies/pnpm/pnpm.package-manager.ts index 90944e983c7f..71813cfc65e2 100644 --- a/scopes/dependencies/pnpm/pnpm.package-manager.ts +++ b/scopes/dependencies/pnpm/pnpm.package-manager.ts @@ -29,6 +29,7 @@ import { import { renderTree } from '@pnpm/list'; import { readWantedLockfile } from '@pnpm/lockfile-file'; import { ProjectManifest } from '@pnpm/types'; +import { BIT_ROOTS_DIR } from '@teambit/legacy/dist/constants'; import { join } from 'path'; import { readConfig } from './read-config'; import { pnpmPruneModules } from './pnpm-prune-modules'; @@ -305,7 +306,7 @@ export class PnpmPackageManager implements PackageManager { const search = createPackagesSearcher([depName]); const lockfile = await readWantedLockfile(opts.lockfileDir, { ignoreIncompatible: false }); const projectPaths = Object.keys(lockfile?.importers ?? {}) - .filter((id) => !id.startsWith('node_modules/.bit_roots')) + .filter((id) => !id.includes(`${BIT_ROOTS_DIR}/`)) .map((id) => join(opts.lockfileDir, id)); const cache = new Map(); const modulesManifest = await this._readModulesManifest(opts.lockfileDir); diff --git a/scopes/pkg/pkg/pkg.main.runtime.ts b/scopes/pkg/pkg/pkg.main.runtime.ts index d8acc27a5bda..a008a4cc7d3b 100644 --- a/scopes/pkg/pkg/pkg.main.runtime.ts +++ b/scopes/pkg/pkg/pkg.main.runtime.ts @@ -206,7 +206,10 @@ export class PkgMain { * This is used in cases you want to actually run the components and make sure all the dependencies (especially peers) are resolved correctly */ getRuntimeModulePath(component: Component, options: GetModulePathOptions = {}) { - const relativePath = this.dependencyResolver.getRuntimeModulePath(component); + const relativePath = this.dependencyResolver.getRuntimeModulePath(component, { + workspacePath: this.workspace.path, + rootComponentsPath: this.workspace.rootComponentsPath, + }); if (options?.absPath) { if (this.workspace) { return join(this.workspace.path, relativePath); diff --git a/scopes/workspace/install/install.main.runtime.ts b/scopes/workspace/install/install.main.runtime.ts index b696e3661308..adb846946031 100644 --- a/scopes/workspace/install/install.main.runtime.ts +++ b/scopes/workspace/install/install.main.runtime.ts @@ -1,6 +1,6 @@ import fs, { pathExists } from 'fs-extra'; import path from 'path'; -import { getRootComponentDir, getBitRootsDir, linkPkgsToBitRoots } from '@teambit/bit-roots'; +import { getRootComponentDir, linkPkgsToRootComponents } from '@teambit/workspace.root-components'; import { CompilerMain, CompilerAspect, CompilationInitiator } from '@teambit/compiler'; import { CLIMain, CommandList, CLIAspect, MainRuntime } from '@teambit/cli'; import chalk from 'chalk'; @@ -614,11 +614,10 @@ export class InstallMain { private async _updateRootDirs(rootDirs: string[]) { try { - const bitRootCompsDir = getBitRootsDir(this.workspace.path); - const existingDirs = await fs.readdir(bitRootCompsDir); + const existingDirs = await fs.readdir(this.workspace.rootComponentsPath); await Promise.all( existingDirs.map(async (dirName) => { - const dirPath = path.join(bitRootCompsDir, dirName); + const dirPath = path.join(this.workspace.rootComponentsPath, dirName); if (!rootDirs.includes(dirPath)) { await fs.remove(dirPath); } @@ -656,7 +655,7 @@ export class InstallMain { await Promise.all( envs.map(async (envId) => { return [ - await this.getRootComponentDirByRootId(this.workspace.path, envId), + await this.getRootComponentDirByRootId(this.workspace.rootComponentsPath, envId), { dependencies: { ...(await this._getEnvDependencies(envId)), @@ -718,7 +717,7 @@ export class InstallMain { if (!appManifest) return null; const envId = await this.envs.calculateEnvId(app); return [ - await this.getRootComponentDirByRootId(this.workspace.path, app.id), + await this.getRootComponentDirByRootId(this.workspace.rootComponentsPath, app.id), { ...omit(appManifest, ['name', 'version']), dependencies: { @@ -927,23 +926,26 @@ export class InstallMain { const apps = (await this.app.listAppsComponents()).map((component) => component.id); await Promise.all( [...envs, ...apps].map(async (id) => { - const dir = await this.getRootComponentDirByRootId(this.workspace.path, id); + const dir = await this.getRootComponentDirByRootId(this.workspace.rootComponentsPath, id); await fs.mkdirp(dir); }) ); - await linkPkgsToBitRoots( - this.workspace.path, + await linkPkgsToRootComponents( + { + rootComponentsPath: this.workspace.rootComponentsPath, + workspacePath: this.workspace.path, + }, compDirMap.components.map((component) => this.dependencyResolver.getPackageName(component)) ); } - private async getRootComponentDirByRootId(workspacePath: string, rootComponentId: ComponentID): Promise { + private async getRootComponentDirByRootId(rootComponentsPath: string, rootComponentId: ComponentID): Promise { // Root directories for local envs and apps are created without their version number. // This is done in order to avoid changes to the lockfile after such components are tagged. - const id = (await this.workspace.hasId(rootComponentId)) + const id = this.workspace.hasId(rootComponentId) ? rootComponentId.toStringWithoutVersion() : rootComponentId.toString(); - return getRootComponentDir(workspacePath, id); + return getRootComponentDir(rootComponentsPath, id); } /** diff --git a/scopes/workspace/modules/node-modules-linker/node-modules-linker.ts b/scopes/workspace/modules/node-modules-linker/node-modules-linker.ts index 0da92c60cf6c..003e98d675c3 100644 --- a/scopes/workspace/modules/node-modules-linker/node-modules-linker.ts +++ b/scopes/workspace/modules/node-modules-linker/node-modules-linker.ts @@ -1,7 +1,7 @@ import fs from 'fs-extra'; import pMapSeries from 'p-map-series'; import * as path from 'path'; -import { linkPkgsToBitRoots } from '@teambit/bit-roots'; +import { linkPkgsToRootComponents } from '@teambit/workspace.root-components'; import { ComponentID } from '@teambit/component-id'; import { IS_WINDOWS, PACKAGE_JSON, SOURCE_DIR_SYMLINK_TO_NM } from '@teambit/legacy/dist/constants'; import { BitMap } from '@teambit/legacy.bit-map'; @@ -69,8 +69,11 @@ export default class NodeModuleLinker { this.workspace.clearAllComponentsCache(); } - await linkPkgsToBitRoots( - workspacePath, + await linkPkgsToRootComponents( + { + rootComponentsPath: this.workspace.rootComponentsPath, + workspacePath, + }, this.components.map((comp) => componentIdToPackageName(comp.state._consumer)) ); return linksResults; diff --git a/scopes/workspace/workspace/types.ts b/scopes/workspace/workspace/types.ts index c29bb7221d82..36b5d4c029b6 100644 --- a/scopes/workspace/workspace/types.ts +++ b/scopes/workspace/workspace/types.ts @@ -23,6 +23,12 @@ export interface WorkspaceExtConfig { */ defaultDirectory: string; + /** + * sets the location of the root components directory. + * The location is a relative path to the workspace root and should use linux path separators (/). + */ + rootComponentsDirectory?: string; + /** * set the default structure of components in your project */ diff --git a/scopes/workspace/workspace/workspace.ts b/scopes/workspace/workspace/workspace.ts index 1660fd585efa..2c90ba53d8e4 100644 --- a/scopes/workspace/workspace/workspace.ts +++ b/scopes/workspace/workspace/workspace.ts @@ -51,6 +51,7 @@ import { CompIdGraph, DepEdgeType } from '@teambit/graph'; import { slice, isEmpty, merge, compact, uniqBy } from 'lodash'; import { MergeConfigFilename, + BIT_ROOTS_DIR, CFG_DEFAULT_RESOLVE_ENVS_FROM_ROOTS, CFG_USER_TOKEN_KEY, } from '@teambit/legacy/dist/constants'; @@ -286,6 +287,17 @@ export class Workspace implements ComponentFactory { return this.consumer.getPath(); } + /** + * Get the location of the bit roots folder + */ + get rootComponentsPath() { + const baseDir = + this.config.rootComponentsDirectory != null + ? path.join(this.path, this.config.rootComponentsDirectory) + : this.modulesPath; + return path.join(baseDir, BIT_ROOTS_DIR); + } + /** get the `node_modules` folder of this workspace */ private get modulesPath() { return path.join(this.path, 'node_modules'); @@ -1707,8 +1719,11 @@ the following envs are used in this workspace: ${availableEnvs.join(', ')}`); } async getComponentPackagePath(component: Component) { - const inInWs = await this.hasId(component.id); - const relativePath = this.dependencyResolver.getRuntimeModulePath(component, inInWs); + const relativePath = this.dependencyResolver.getRuntimeModulePath(component, { + workspacePath: this.path, + rootComponentsPath: this.rootComponentsPath, + isInWorkspace: this.hasId(component.id), + }); return path.join(this.path, relativePath); } diff --git a/src/constants.ts b/src/constants.ts index b32be6702f83..365395e61eb5 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -71,6 +71,8 @@ export const BIT_MAP = '.bitmap'; export const OLD_BIT_MAP = '.bit.map.json'; +export const BIT_ROOTS_DIR = '.bit_roots'; + export const TESTS_FORK_LEVEL = { NONE: 'NONE', ONE: 'ONE', diff --git a/src/e2e-helper/e2e-env-helper.ts b/src/e2e-helper/e2e-env-helper.ts index fa3107eb1964..0a9a0a24c2ca 100644 --- a/src/e2e-helper/e2e-env-helper.ts +++ b/src/e2e-helper/e2e-env-helper.ts @@ -1,5 +1,5 @@ import * as path from 'path'; -import { getRootComponentDir } from '@teambit/bit-roots'; +import { getRootComponentDir } from '@teambit/workspace.root-components'; import CommandHelper from './e2e-command-helper'; import ExtensionsHelper from './e2e-extensions-helper'; import FixtureHelper, { GenerateEnvJsoncOptions } from './e2e-fixtures-helper'; @@ -47,7 +47,7 @@ export default class EnvHelper { } rootCompDir(envName: string) { - return getRootComponentDir(this.scopes.localPath, envName); + return getRootComponentDir(path.join(this.scopes.localPath, 'node_modules/.bit_roots'), envName); } getTypeScriptSettingsForES5() {