File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { versionBump } from "./version-bump";
55export { ReleaseType } from "./release-type" ;
66export * from "./version-bump-options" ;
77export * from "./version-bump-results" ;
8+ export * from "./version-bump-progress" ;
89
910// Export `versionBump` as a named export and the default export
1011export { versionBump } ;
Original file line number Diff line number Diff line change 1+ import { VersionBumpProgress } from "./version-bump-progress" ;
12
23/**
34 * Options for the `versionBump()` function.
@@ -90,6 +91,11 @@ export interface VersionBumpOptions {
9091 * Defaults to `true`.
9192 */
9293 interface ?: boolean | InterfaceOptions ;
94+
95+ /**
96+ * A callback that is provides information about the progress of the `versionBump()` function.
97+ */
98+ progress ?( progress : VersionBumpProgress ) : void ;
9399}
94100
95101/**
Original file line number Diff line number Diff line change 1+ import { VersionBumpResults } from "./version-bump-results" ;
2+
3+ /**
4+ * Progress events that indicate the progress of the `versionBump()` function.
5+ */
6+ export const enum ProgressEvent {
7+ FileUpdated = "file updated" ,
8+ GitCommit = "git commit" ,
9+ GitTag = "git tag" ,
10+ GitPush = "git push" ,
11+ }
12+
13+ /**
14+ * Information about the progress of the `versionBump()` function.
15+ */
16+ export interface VersionBumpProgress extends VersionBumpResults {
17+ event : ProgressEvent ;
18+ }
You can’t perform that action at this time.
0 commit comments