UNPKG

@tanstack/cli

Version:
18 lines (17 loc) 737 B
export declare function sanitizePackageName(name: string): string; export declare function getCurrentDirectoryName(): string; export declare function getDirectoryPackageName(directory: string): string; export declare function getCurrentDirectoryPackageName(): string; export declare function isCurrentDirectoryProjectNameInput(name: string): boolean; export declare function resolveProjectLocation({ projectName, targetDir, emptyProjectNameIsCurrentDirectory, }: { projectName?: string; targetDir?: string; emptyProjectNameIsCurrentDirectory?: boolean; }): { projectName: string; targetDir: string; } | undefined; export declare function validateProjectName(name: string): { valid: boolean; error: string; };