add-dist-header
Version:
Prepend a one-line banner comment (with license notice) to distribution files
29 lines (27 loc) • 718 B
TypeScript
//! add-dist-header v1.4.4 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
export type Settings = {
allFiles: boolean;
dist: string;
extension: string | null;
delimiter: string;
replaceComment: boolean;
setVersion: boolean;
};
export type Result = {
valid: boolean;
text: boolean;
dist: string;
header: string | null;
source: string;
file: string;
length: number | null;
size: string | null;
};
export type ReporterSettings = {
quite: boolean;
};
declare const addDistHeader: {
prepend(filename: string, options?: Partial<Settings>): Result;
reporter(result: Result, options?: ReporterSettings): Result;
};
export { addDistHeader };