@teambit/workspace 1.0.979 → 1.0.981

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.979/dist/workspace.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.979/dist/workspace.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.981/dist/workspace.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.981/dist/workspace.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -194,6 +194,12 @@ export declare class Workspace implements ComponentFactory {
194
194
  * Get the location of the bit roots folder
195
195
  */
196
196
  get rootComponentsPath(): string;
197
+ /**
198
+ * Whether the workspace is configured to use root components — the per-env install
199
+ * layout written to `rootComponentsPath` (defaults to `node_modules/.bit_roots`,
200
+ * relocatable via `dependencyResolver.rootComponentsDirectory`).
201
+ */
202
+ hasRootComponents(): boolean;
197
203
  /** get the `node_modules` folder of this workspace */
198
204
  private get modulesPath();
199
205
  get isLegacy(): boolean;
package/dist/workspace.js CHANGED
@@ -477,6 +477,15 @@ class Workspace {
477
477
  return _path().default.join(baseDir, _legacy5().BIT_ROOTS_DIR);
478
478
  }
479
479
 
480
+ /**
481
+ * Whether the workspace is configured to use root components — the per-env install
482
+ * layout written to `rootComponentsPath` (defaults to `node_modules/.bit_roots`,
483
+ * relocatable via `dependencyResolver.rootComponentsDirectory`).
484
+ */
485
+ hasRootComponents() {
486
+ return this.dependencyResolver.hasRootComponents();
487
+ }
488
+
480
489
  /** get the `node_modules` folder of this workspace */
481
490
  get modulesPath() {
482
491
  return _path().default.join(this.path, 'node_modules');