@auto-it/exec
Version:
Tap into select hooks and run a command on the terminal
23 lines • 1.38 kB
TypeScript
import { Auto, IPlugin } from "@auto-it/core";
import * as t from "io-ts";
declare const pluginOptions: t.IntersectionC<[t.PartialC<Record<"canary" | "next" | "modifyConfig" | "beforeRun" | "afterRun" | "beforeShipIt" | "beforeCommitChangelog" | "afterChangelog" | "afterShipIt" | "afterRelease" | "makeRelease" | "getAuthor" | "getPreviousVersion" | "getRepository" | "beforeVersion" | "version" | "afterVersion" | "publish" | "afterPublish" | "prCheck", t.StringC>>, t.PartialC<{
onCreateRelease: t.PartialC<Record<"createChangelogTitle", t.StringC>>;
onCreateLogParse: t.PartialC<Record<keyof import("@auto-it/core/dist/log-parse").ILogParseHooks, t.StringC>>;
onCreateChangelog: t.PartialC<Record<keyof import("@auto-it/core/dist/changelog").IChangelogHooks, t.StringC>>;
}>]>;
export declare type IExecPluginOptions = t.TypeOf<typeof pluginOptions>;
/** Tap into select hooks and run a command on the terminal */
export default class ExecPlugin implements IPlugin {
/** The name of the plugin */
name: string;
/** The options of the plugin */
readonly options: IExecPluginOptions;
/** Initialize the plugin with it's options */
constructor(options: IExecPluginOptions);
/** Tap into auto plugin points. */
apply(auto: Auto): void;
/** Apply a hook to auto */
private applyHook;
}
export {};
//# sourceMappingURL=index.d.ts.map