UNPKG

@monorepo-utils/workspaces-to-typescript-project-references

Version:
40 lines (39 loc) 951 B
import { PackageManagerPlugin } from "./manager/PackageManagerPlugin"; export declare const DEFAULT_TSCONFIGPATH = "tsconfig.json"; export type Options = { rootDir: string; includesLocal: boolean; checkOnly: boolean; plugins?: PackageManagerPlugin[]; tsConfigPath?: string; tsConfigPathFinder?(location: string): string; }; export type toProjectReferencesResult = { ok: true; } | { ok: false; aggregateError: { message: string; errors: Error[]; }; }; export declare const toProjectReferences: (options: Options) => { ok: boolean; aggregateError: { message: string; errors: Error[]; }; } | { ok: boolean; aggregateError?: undefined; }; export declare const toRootProjectReferences: (options: Options) => { ok: boolean; aggregateError: { message: string; errors: Error[]; }; } | { ok: boolean; aggregateError?: undefined; };