@monorepo-utils/workspaces-to-typescript-project-references
Version:
Convert Workspaces to TypeScript's Project References
40 lines (39 loc) • 951 B
TypeScript
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;
};