workspace-tools
Version:
A collection of tools that are useful in a git-controlled monorepo that is managed by one of these tools:
15 lines (14 loc) • 612 B
TypeScript
export declare type WorkspaceImplementations = "yarn" | "pnpm" | "rush" | "npm" | "lerna";
export interface ImplementationAndLockFile {
implementation: WorkspaceImplementations | undefined;
lockFile: string;
}
export declare function getWorkspaceImplementationAndLockFile(cwd: string, cache?: {
[cwd: string]: ImplementationAndLockFile;
}): {
implementation: WorkspaceImplementations | undefined;
lockFile: string;
} | undefined;
export declare function getWorkspaceImplementation(cwd: string, cache?: {
[cwd: string]: ImplementationAndLockFile;
}): WorkspaceImplementations | undefined;