gitverse-release 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli.js +732 -318
- package/dist/cli.js.map +31 -29
- package/dist/gitverse.d.ts +7 -2
- package/dist/index.d.ts +5 -0
- package/dist/index.js +544 -317
- package/dist/index.js.map +29 -28
- package/dist/types.d.ts +151 -0
- package/dist/utils/changelog.d.ts +2 -2
- package/dist/utils/commitlint-generator.d.ts +5 -0
- package/dist/utils/git.d.ts +22 -0
- package/dist/utils/retry.d.ts +35 -0
- package/package.json +4 -3
- package/schema.json +289 -0
package/dist/gitverse.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import type { GitRepoInfo } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Retry функция type
|
|
4
|
+
*/
|
|
5
|
+
export type RetryFunction = <T>(fn: () => Promise<T>, operationName?: string) => Promise<T>;
|
|
2
6
|
/**
|
|
3
7
|
* GitVerse API клиент для создания релизов
|
|
4
8
|
*/
|
|
5
9
|
export declare class GitVerseReleaseClient {
|
|
6
10
|
private client;
|
|
7
11
|
private repoInfo;
|
|
8
|
-
|
|
12
|
+
private retryFn?;
|
|
13
|
+
constructor(token: string, repoInfo: GitRepoInfo, retryFn?: RetryFunction);
|
|
9
14
|
/**
|
|
10
15
|
* Создает релиз на GitVerse
|
|
11
16
|
*/
|
|
@@ -25,4 +30,4 @@ export declare class GitVerseReleaseClient {
|
|
|
25
30
|
/**
|
|
26
31
|
* Создает клиент для работы с GitVerse API
|
|
27
32
|
*/
|
|
28
|
-
export declare function createGitVerseClient(repoInfo: GitRepoInfo): GitVerseReleaseClient;
|
|
33
|
+
export declare function createGitVerseClient(repoInfo: GitRepoInfo, retryFn?: RetryFunction): GitVerseReleaseClient;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,11 @@ import type { CliOptions, ReleaseResult } from "./types";
|
|
|
3
3
|
* Основная функция для создания релиза
|
|
4
4
|
*/
|
|
5
5
|
export declare function release(packageName?: string, options?: CliOptions): Promise<ReleaseResult>;
|
|
6
|
+
/**
|
|
7
|
+
* Создает только GitVerse Release для существующего тега (без commit/push)
|
|
8
|
+
* Полезно для recovery после failed release в CI/CD
|
|
9
|
+
*/
|
|
10
|
+
export declare function createReleaseOnly(tag: string, packageName?: string, configPath?: string): Promise<ReleaseResult>;
|
|
6
11
|
export { loadConfig, validateConfig } from "./config";
|
|
7
12
|
export { createGitVerseClient } from "./gitverse";
|
|
8
13
|
export * from "./types";
|