From 080543e76dcd980067e6aa55ae71bc4da905cafc Mon Sep 17 00:00:00 2001 From: Colum Ferry Date: Fri, 4 Nov 2022 12:58:10 +0000 Subject: [PATCH] feat(module-federation): expose additional helpers (#12990) --- packages/module-federation/src/utils/dependencies.ts | 9 ++------- packages/module-federation/src/utils/index.ts | 2 ++ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/module-federation/src/utils/dependencies.ts b/packages/module-federation/src/utils/dependencies.ts index 65b7d018e3..bf3db6df52 100644 --- a/packages/module-federation/src/utils/dependencies.ts +++ b/packages/module-federation/src/utils/dependencies.ts @@ -1,12 +1,7 @@ -import { ProjectGraph } from '@nrwl/devkit'; +import type { ProjectGraph } from '@nrwl/devkit'; +import type { WorkspaceLibrary } from '../models'; import { readTsPathMappings } from './typescript'; -export type WorkspaceLibrary = { - name: string; - root: string; - importKey: string | undefined; -}; - export function getDependentPackagesForProject( projectGraph: ProjectGraph, name: string diff --git a/packages/module-federation/src/utils/index.ts b/packages/module-federation/src/utils/index.ts index c46d87b31a..7c14089ff0 100644 --- a/packages/module-federation/src/utils/index.ts +++ b/packages/module-federation/src/utils/index.ts @@ -1 +1,3 @@ export * from './share'; +export * from './dependencies'; +export * from './package-json';