@auto-it/package-json-utils
Version:
Shared utilities for parsing information from a package.json
13 lines • 546 B
TypeScript
/** Load and parse the root package json for the project */
export declare function loadPackageJson(root?: string): Promise<IPackageJSON>;
export interface IRepoConfig {
/** Owner of the repo (or GitHub user) */
owner: string;
/** The project */
repo: string;
}
/** Try to the the owner/repo from the package.json */
export declare function getRepo(): Promise<IRepoConfig | undefined>;
/** Get the author from a package.json */
export declare function getAuthor(): Promise<IAuthor | undefined>;
//# sourceMappingURL=index.d.ts.map