pig-dam-core
Version:
Library that should be included in every Pig DAM project we build
29 lines • 946 B
TypeScript
/**
* Date: 5/23/20
* Time: 1:03 AM
* @license MIT (see project's LICENSE file)
*/
/**
* Get's this module's application package.json contents
* @throws {Error}
*/
export declare function getModulesApplicationPackage(): {
[key: string]: any;
} | undefined;
/**
* Get's this module's application root directory. Actually it gets the directory of wherever the script
* that started up the application in which this is.
* @throws {Error}
*/
export declare function getModulesApplicationRoot(): string;
/**
* Gets the module's relative path to its own root. For example - "./src/core/module.ts"
* @throws {Error}
*/
export declare function getModulesRelativePath(modulePath: string): string;
/**
* Finds the root for the module belonging to <param>modulePath</param>. It will not include a trailing "/".
* @throws {Error}
*/
export declare function findModuleRoot(modulePath: string): string;
//# sourceMappingURL=module.d.ts.map