mp-lens
Version:
微信小程序分析工具 (Unused Code, Dependencies, Visualization)
15 lines (14 loc) • 631 B
TypeScript
type FindAppJsonResult = {
appJsonPath: string;
miniappRoot: string;
} | null | 'ambiguous';
/**
* Searches for a valid app.json within a project directory to automatically determine
* miniappRoot and appJsonPath.
*
* @param projectRoot The absolute path to the project's root directory.
* @param excludeDirs Optional array of directory names to exclude from search.
* @returns An object with absolute paths for appJsonPath and miniappRoot, 'ambiguous' if multiple found, or null if none found.
*/
export declare function findAppJsonConfig(projectRoot: string, excludeDirs?: string[]): FindAppJsonResult;
export {};