onreza-release 1.0.1 → 2.1.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/dist/config.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import type { BinariesConfig, BinaryPlatform, ReleaseConfig } from "./types";
1
+ import type { BinariesConfig, BinaryPlatform, ReleaseConfig, ReleaseProviderConfig } from "./types";
2
2
  /**
3
3
  * Дефолтное имя конфиг-файла
4
4
  */
5
- export declare const DEFAULT_CONFIG_FILE_NAME = ".gitversereleaserc.jsonc";
5
+ export declare const DEFAULT_CONFIG_FILE_NAME = ".onrezarelease.jsonc";
6
6
  /**
7
7
  * Дефолтные платформы для бинарной дистрибуции
8
8
  */
@@ -11,6 +11,10 @@ export declare const DEFAULT_BINARY_PLATFORMS: BinaryPlatform[];
11
11
  * Дефолтная конфигурация бинарной дистрибуции
12
12
  */
13
13
  export declare const DEFAULT_BINARIES_CONFIG: BinariesConfig;
14
+ /**
15
+ * Дефолтная конфигурация release провайдера
16
+ */
17
+ export declare const DEFAULT_RELEASE_PROVIDER_CONFIG: ReleaseProviderConfig;
14
18
  /**
15
19
  * Дефолтная конфигурация
16
20
  */
@@ -20,8 +24,8 @@ export declare const DEFAULT_CONFIG: Required<ReleaseConfig>;
20
24
  *
21
25
  * Порядок поиска:
22
26
  * 1. Если указан configPath - используем его
23
- * 2. Ищем .gitversereleaserc.jsonc
24
- * 3. Ищем .gitversereleaserc.json
27
+ * 2. Ищем .onrezarelease.jsonc
28
+ * 3. Ищем .onrezarelease.json
25
29
  * 4. Если ничего не найдено - используем дефолтную конфигурацию
26
30
  */
27
31
  export declare function loadConfig(configPath?: string): Promise<Required<ReleaseConfig>>;
package/dist/index.d.ts CHANGED
@@ -4,13 +4,15 @@ import type { CliOptions, ReleaseResult } from "./types";
4
4
  */
5
5
  export declare function release(packageName?: string, options?: CliOptions): Promise<ReleaseResult>;
6
6
  /**
7
- * Создает только GitVerse Release для существующего тега (без commit/push)
7
+ * Создает только Release для существующего тега (без commit/push)
8
8
  * Полезно для recovery после failed release в CI/CD
9
9
  */
10
10
  export declare function createReleaseOnly(tag: string, packageName?: string, configPath?: string): Promise<ReleaseResult>;
11
- export { generateBinaryPackages, publishBinaries } from "./binaries";
12
- export { configExists, DEFAULT_BINARIES_CONFIG, DEFAULT_BINARY_PLATFORMS, DEFAULT_CONFIG_FILE_NAME, generateConfigContent, initConfig, loadConfig, validateBinariesConfig, validateConfig, } from "./config";
13
- export type { TokenValidationResult } from "./gitverse";
14
- export { createGitVerseClient, getToken, getTokenNotFoundError, isGitVerseActionsCI, LEGACY_TOKEN_ENV_VAR, TOKEN_ENV_VAR, validateGitVerseToken, } from "./gitverse";
11
+ export { publishBinaries } from "./binaries";
12
+ export { configExists, DEFAULT_BINARIES_CONFIG, DEFAULT_BINARY_PLATFORMS, DEFAULT_CONFIG_FILE_NAME, DEFAULT_RELEASE_PROVIDER_CONFIG, generateConfigContent, initConfig, loadConfig, validateBinariesConfig, validateConfig, } from "./config";
13
+ export type { AssetLimits, CreateReleaseOptions, CreateReleaseProviderOptions, CreateReleaseProviderResult, CreateReleaseResult, GitPlatform, ProviderRepoInfo, ReleaseProvider, TokenValidationResult, UploadAssetResult, } from "./providers";
14
+ export { createReleaseProvider, detectCiEnvironment, detectPlatform, detectPlatformAuto, GitHubReleaseProvider, GitVerseReleaseProvider, getAssetLimits, getToken, getTokenNotFoundError, hasToken, isCI, PLATFORM_ASSET_LIMITS, validateToken, } from "./providers";
15
15
  export * from "./types";
16
- export { ALL_PLATFORMS, expandPlaceholders, getBinaryPath, getPackageName, getPackageOutputPath, getPlatformDir, isValidPlatform, PLATFORM_MAPPINGS, parsePlatforms, platformToNodeValues, validateAllBinaries, validateBinaryExists, } from "./utils/binary-platforms";
16
+ export { formatFileSize, GITVERSE_ASSET_LIMITS, GitVerseDistributionProvider, validateAssetBatch, validateAssetFile, } from "./utils/binary-distribution-provider";
17
+ export { ALL_PLATFORMS, getArchivePath, getBinaryPath, getBinarySourcePath, getPlatformDir, isValidPlatform, PLATFORM_MAPPINGS, parsePlatforms, platformToNodeValues, validateAllBinaries, validateAllBinarySources, validateBinaryExists, validateBinarySourceExists, } from "./utils/binary-platforms";
18
+ export { createBinaryManifest, generateBinWrapper, generateMasterPackageJson, generatePostinstallScript, } from "./utils/binary-postinstall-generator";