We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8370caf commit c0b4cf6Copy full SHA for c0b4cf6
2 files changed
src/index.ts
@@ -3,5 +3,6 @@ import { gitTagDescriptor } from './gitTagDescriptor';
3
import { cleanForSemver, descriptorToString } from './output';
4
import { AbsoluteVersionConfig } from './types';
5
6
+/** Reads the tag information from the git repository, and returns an absolute-version */
7
export const versionFromGitTag = (config?: AbsoluteVersionConfig): string =>
8
descriptorToString(gitTagDescriptor(cleanForSemver, applyDefaults(config)));
src/types.ts
@@ -1,3 +1,5 @@
1
+/** Complete configuration for AbsoluteVersion */
2
export interface AbsoluteVersionConfig {
+ /** Glob for detecting version tags. The format for the glob is the same as for `git describe --match`. Default is `v[0-9]*` */
tagGlob: string;
}
0 commit comments