es-guard
Version:
A tool to check JavaScript compatibility with target environments
32 lines • 1.27 kB
TypeScript
/**
* Default configurations for different project types
*/
import type { ProjectType } from "./types.js";
/**
* Next.js default browserslist configuration
* Source: https://nextjs.org/docs/basic-features/supported-browsers-features
*/
export declare const NEXTJS_DEFAULT_BROWSERSLIST: readonly ["chrome 64", "edge 79", "firefox 67", "opera 51", "safari 12"];
/**
* Default output directories for different project types
*/
export declare const DEFAULT_OUTPUT_DIRS: Record<ProjectType, string>;
/**
* Project type detection helpers
*/
export declare const PROJECT_TYPES: Record<ProjectType, ProjectType>;
export declare const ProjectTypeKeys: Set<ProjectType>;
export declare const isProjectType: (projectType: string) => projectType is ProjectType;
/**
* Get default browserslist for a project type
*/
export declare function getDefaultBrowserslist(projectType: string): string[] | null;
/**
* Get default output directory for a project type
*/
export declare function getDefaultOutputDir(projectType: string): string;
/**
* Detect project type from package.json dependencies
*/
export declare function detectProjectType(dependencies?: Record<string, string>, devDependencies?: Record<string, string>): ProjectType;
//# sourceMappingURL=defaults.d.ts.map