@re-shell/cli
Version:
Full-stack development platform uniting microservices and microfrontends. Build complete applications with .NET (ASP.NET Core Web API, Minimal API), Java (Spring Boot, Quarkus, Micronaut, Vert.x), Rust (Actix-Web, Warp, Rocket, Axum), Python (FastAPI, Dja
32 lines (31 loc) • 1.04 kB
TypeScript
export interface MonorepoConfig {
name: string;
packageManager: 'npm' | 'yarn' | 'pnpm';
workspaces: string[];
structure: {
apps: string;
packages: string;
libs: string;
tools: string;
docs: string;
};
}
export interface WorkspaceInfo {
name: string;
path: string;
type: 'app' | 'package' | 'lib' | 'tool';
framework?: string;
version: string;
dependencies: string[];
}
export declare const DEFAULT_MONOREPO_STRUCTURE: {
apps: string;
packages: string;
libs: string;
tools: string;
docs: string;
};
export declare function initializeMonorepo(name: string, packageManager?: 'npm' | 'yarn' | 'pnpm', customStructure?: Partial<typeof DEFAULT_MONOREPO_STRUCTURE>): Promise<MonorepoConfig>;
export declare function getWorkspaces(rootPath?: string): Promise<WorkspaceInfo[]>;
export declare function isMonorepoRoot(dirPath?: string): Promise<boolean>;
export declare function findMonorepoRoot(startPath?: string): Promise<string | null>;