@vercel/microfrontends
Version:
Defines configuration and utilities for microfrontends development
16 lines (13 loc) • 509 B
TypeScript
declare function findConfig({ dir }: {
dir: string;
}): string | null;
interface FindDefaultMicrofrontendPackageArgs {
repositoryRoot: string;
applicationName: string;
}
/**
* Given a repository root and a package name, find the path to the package directory with
* a microfrontends config that contains the given name in its applications.
*/
declare function inferMicrofrontendsLocation(opts: FindDefaultMicrofrontendPackageArgs): string;
export { findConfig, inferMicrofrontendsLocation };