setup-typescript-monorepo
Version:
Convert Workspaces to TypeScript's Project References
34 lines (33 loc) • 850 B
TypeScript
import { PackageManagerPlugin } from "./manager/PackageManagerPlugin";
export declare const UNSET_FLAG = "__unset__";
export declare type Options = {
rootDir: string;
checkOnly: boolean;
onlyOnPath?: string;
addInclude?: string[];
onlyPackages?: string[];
addRootDir?: string;
addEsmTsconfig?: string;
addExtends?: string;
removeComments?: boolean;
addComposite?: boolean;
indentation?: number;
plugins?: PackageManagerPlugin[];
tsConfigPathFinder?(location: string): string;
};
export declare type ToProjectReferencesResult = {
ok: true;
} | {
ok: false;
aggregateError: {
message: string;
errors: Error[];
};
};
export declare const toProjectReferences: (options: Options) => {
ok: boolean;
errors: any[];
} | {
ok: boolean;
errors?: undefined;
};