willow-cli
Version:
CLI for installing Willow Design System components
35 lines • 1.13 kB
TypeScript
import type { ProjectType } from '../types/index.js';
/**
* Enhanced project type detection with better environment awareness
*/
export declare function detectProjectType(): Promise<ProjectType>;
/**
* Detect the package manager being used
*/
export declare function detectPackageManager(): Promise<'npm' | 'yarn' | 'pnpm' | 'bun'>;
/**
* Check if the project has specific configurations
*/
export declare function hasConfiguration(configType: 'tailwind' | 'postcss' | 'typescript' | 'eslint'): Promise<boolean>;
/**
* Get project-specific directory preferences
*/
export declare function getProjectStructure(projectType: ProjectType): Promise<{
componentsDir: string;
libDir: string;
cssPath: string;
publicDir: string;
}>;
/**
* Validate project requirements for Willow installation
*/
export declare function validateProjectRequirements(): Promise<{
valid: boolean;
issues: string[];
warnings: string[];
}>;
/**
* Log project environment details for debugging
*/
export declare function logProjectEnvironment(projectType: ProjectType): void;
//# sourceMappingURL=projectDetection.d.ts.map