package-json-from-git
Version:
Generate package.json information from Git data. Useful for `create-xxx` tools.
23 lines (20 loc) • 459 B
TypeScript
/**
* Get repository, homepage, bugs, author from .git
*/
export declare function getPackageJsonFromGit(baseDir?: string): Promise<PackageJsonFromGit>;
export declare interface PackageJsonFromGit {
repository?: {
type: string;
url: string;
};
homepage?: string;
bugs?: {
url: string;
};
author?: {
name: string;
email: string;
};
funding?: string;
}
export { }