gitverse-release 2.0.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 +352 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +118 -0
- package/dist/cli.js.map +10 -0
- package/dist/config.d.ts +13 -0
- package/dist/gitverse.d.ts +28 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1299 -0
- package/dist/index.js.map +36 -0
- package/dist/types.d.ts +328 -0
- package/dist/utils/changelog.d.ts +14 -0
- package/dist/utils/git.d.ts +45 -0
- package/dist/utils/parser.d.ts +29 -0
- package/dist/utils/version.d.ts +18 -0
- package/package.json +60 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { BumpType, ConventionalCommit, VersionBump } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Определяет тип изменения версии на основе коммитов
|
|
4
|
+
*/
|
|
5
|
+
export declare function determineBumpType(commits: ConventionalCommit[]): BumpType | null;
|
|
6
|
+
/**
|
|
7
|
+
* Увеличивает версию согласно типу изменения
|
|
8
|
+
*/
|
|
9
|
+
export declare function bumpVersion(currentVersion: string, bumpType: BumpType, prereleasePrefix?: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* Вычисляет bump версии на основе коммитов
|
|
12
|
+
*/
|
|
13
|
+
export declare function calculateVersionBump(currentVersion: string, commits: ConventionalCommit[], forceVersion?: string, prerelease?: string): VersionBump;
|
|
14
|
+
/**
|
|
15
|
+
* Сравнивает две версии
|
|
16
|
+
* Возвращает: -1 если a < b, 0 если a === b, 1 если a > b
|
|
17
|
+
*/
|
|
18
|
+
export declare function compareVersions(a: string, b: string): number;
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Ivan Bobchenkov<me@bobchenkov.ru>",
|
|
3
|
+
"bin": {
|
|
4
|
+
"gitverse-release": "./dist/cli.js"
|
|
5
|
+
},
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://gitverse.ru/rainypixel/gitverse-sdk/issues"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"gitverse-api-sdk": "2.0.1"
|
|
11
|
+
},
|
|
12
|
+
"description": "Conventional Commits release automation tool for GitVerse",
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@types/bun": "1.3.0",
|
|
15
|
+
"bun-plugin-dts": "^0.3.0",
|
|
16
|
+
"typescript": "^5.9.3"
|
|
17
|
+
},
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"import": "./dist/index.js",
|
|
21
|
+
"types": "./dist/index.d.ts"
|
|
22
|
+
},
|
|
23
|
+
"./cli": {
|
|
24
|
+
"import": "./dist/cli.js",
|
|
25
|
+
"types": "./dist/cli.d.ts"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"files": ["dist", "README.md"],
|
|
29
|
+
"homepage": "https://gitverse.ru/rainypixel/gitverse-sdk#readme",
|
|
30
|
+
"keywords": [
|
|
31
|
+
"gitverse",
|
|
32
|
+
"release",
|
|
33
|
+
"conventional-commits",
|
|
34
|
+
"changelog",
|
|
35
|
+
"versioning",
|
|
36
|
+
"semantic-release",
|
|
37
|
+
"monorepo",
|
|
38
|
+
"bun"
|
|
39
|
+
],
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"main": "dist/index.js",
|
|
42
|
+
"name": "gitverse-release",
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public"
|
|
45
|
+
},
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "https://gitverse.ru/rainypixel/gitverse-sdk.git"
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "bun build.ts",
|
|
52
|
+
"dev": "bun build.ts --watch",
|
|
53
|
+
"test": "bun test",
|
|
54
|
+
"test:coverage": "bun test --coverage",
|
|
55
|
+
"typecheck": "tsc --noEmit"
|
|
56
|
+
},
|
|
57
|
+
"type": "module",
|
|
58
|
+
"types": "dist/index.d.ts",
|
|
59
|
+
"version": "2.0.0"
|
|
60
|
+
}
|