UNPKG

@adpt/core

Version:
15 lines 512 B
export interface PackageInfo { main: string; name: string; root: string; version: string; } export declare function findPackageInfo(dir: string): PackageInfo; /** * Traverse up the directory hierarchy from `dir` to find the parent of the * node_modules directory closest to root. * If no node_modules directory exists in the directory hierarchy, returns * undefined. */ export declare function findNodeModulesParent(dir: string): string | undefined; //# sourceMappingURL=packageinfo.d.ts.map