@adpt/core
Version:
AdaptJS core library
15 lines • 512 B
TypeScript
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