@releasekit/version 0.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/LICENCE.md +7 -0
- package/README.md +307 -0
- package/dist/baseError-IKMJCSYK.js +6 -0
- package/dist/baseError-ZCZHF6A2.js +7 -0
- package/dist/chunk-6CLV2DJG.js +2166 -0
- package/dist/chunk-7GDPUNML.js +128 -0
- package/dist/chunk-GLFC564Q.js +2174 -0
- package/dist/chunk-GQLJ7JQY.js +18 -0
- package/dist/chunk-KZDV4EBO.js +2170 -0
- package/dist/chunk-WEP3ACTS.js +2125 -0
- package/dist/cli.cjs +2313 -0
- package/dist/cli.d.cts +4 -0
- package/dist/cli.d.ts +4 -0
- package/dist/cli.js +105 -0
- package/dist/index.cjs +2228 -0
- package/dist/index.d.cts +209 -0
- package/dist/index.d.ts +209 -0
- package/dist/index.js +30 -0
- package/docs/CI_CD_INTEGRATION.md +197 -0
- package/docs/versioning.md +501 -0
- package/package.json +80 -0
- package/version.schema.json +148 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"$schema": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "JSON schema reference"
|
|
8
|
+
},
|
|
9
|
+
"versionPrefix": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"description": "The prefix used for Git tags",
|
|
13
|
+
"default": "v"
|
|
14
|
+
},
|
|
15
|
+
"tagTemplate": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"minLength": 1,
|
|
18
|
+
"default": "${prefix}${version}",
|
|
19
|
+
"description": "Template for formatting Git tags"
|
|
20
|
+
},
|
|
21
|
+
"packageSpecificTags": {
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"default": false,
|
|
24
|
+
"description": "Whether to enable package-specific tagging behaviour"
|
|
25
|
+
},
|
|
26
|
+
"preset": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": ["angular", "conventional"],
|
|
29
|
+
"default": "angular",
|
|
30
|
+
"description": "The commit message convention preset"
|
|
31
|
+
},
|
|
32
|
+
"changelogFormat": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": ["keep-a-changelog", "angular"],
|
|
35
|
+
"default": "keep-a-changelog",
|
|
36
|
+
"description": "The format to use for generating changelogs"
|
|
37
|
+
},
|
|
38
|
+
"baseBranch": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"minLength": 1,
|
|
41
|
+
"description": "The main branch for versioning",
|
|
42
|
+
"default": "main"
|
|
43
|
+
},
|
|
44
|
+
"sync": {
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"default": false,
|
|
47
|
+
"description": "Whether packages should be versioned together"
|
|
48
|
+
},
|
|
49
|
+
"packages": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"minLength": 1
|
|
54
|
+
},
|
|
55
|
+
"default": [],
|
|
56
|
+
"description": "Array of package names or patterns that determines which packages will be processed for versioning. When specified, only packages matching these patterns will be versioned. When empty or not specified, all workspace packages will be processed. Supports exact names (e.g., '@scope/package-a'), scope wildcards (e.g., '@scope/*'), path patterns (e.g., 'packages/**/*', 'examples/**'), and global wildcards (e.g., '*')."
|
|
57
|
+
},
|
|
58
|
+
"mainPackage": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"minLength": 1,
|
|
61
|
+
"description": "The package to use for version determination"
|
|
62
|
+
},
|
|
63
|
+
"versionStrategy": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"enum": ["branchPattern", "commitMessage"],
|
|
66
|
+
"default": "commitMessage",
|
|
67
|
+
"description": "How to determine version changes"
|
|
68
|
+
},
|
|
69
|
+
"branchPattern": {
|
|
70
|
+
"type": "array",
|
|
71
|
+
"items": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"minLength": 1
|
|
74
|
+
},
|
|
75
|
+
"default": ["major:", "minor:", "patch:"],
|
|
76
|
+
"description": "Patterns to match against branch names"
|
|
77
|
+
},
|
|
78
|
+
"updateInternalDependencies": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"enum": ["major", "minor", "patch", "no-internal-update"],
|
|
81
|
+
"default": "patch",
|
|
82
|
+
"description": "How to update dependencies between packages"
|
|
83
|
+
},
|
|
84
|
+
"skip": {
|
|
85
|
+
"type": "array",
|
|
86
|
+
"items": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"minLength": 1
|
|
89
|
+
},
|
|
90
|
+
"default": [],
|
|
91
|
+
"description": "Packages to exclude from versioning. Supports exact package names (e.g., '@internal/docs'), scope wildcards (e.g., '@internal/*'), and path patterns (e.g., 'packages/**/test-*', 'examples/**/*')"
|
|
92
|
+
},
|
|
93
|
+
"commitMessage": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"minLength": 1,
|
|
96
|
+
"default": "chore(release): v${version}",
|
|
97
|
+
"description": "Template for commit messages. Available variables: ${version}, ${packageName}, ${scope}"
|
|
98
|
+
},
|
|
99
|
+
"prereleaseIdentifier": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"minLength": 1,
|
|
102
|
+
"description": "Identifier for prerelease versions"
|
|
103
|
+
},
|
|
104
|
+
"skipHooks": {
|
|
105
|
+
"type": "boolean",
|
|
106
|
+
"default": false,
|
|
107
|
+
"description": "Whether to skip Git hooks"
|
|
108
|
+
},
|
|
109
|
+
"writeChangelog": {
|
|
110
|
+
"type": "boolean",
|
|
111
|
+
"default": true,
|
|
112
|
+
"description": "Whether to write changelog files to disk"
|
|
113
|
+
},
|
|
114
|
+
"strictReachable": {
|
|
115
|
+
"type": "boolean",
|
|
116
|
+
"default": false,
|
|
117
|
+
"description": "Only use reachable tags (no fallback to unreachable tags)"
|
|
118
|
+
},
|
|
119
|
+
"mismatchStrategy": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"enum": ["error", "warn", "ignore", "prefer-package", "prefer-git"],
|
|
122
|
+
"default": "error",
|
|
123
|
+
"description": "How to handle version mismatches between git tags and package.json. 'error' throws and stops execution (default), 'warn' logs a warning but continues, 'prefer-package' uses package.json version, 'prefer-git' uses git tag, 'ignore' silently continues."
|
|
124
|
+
},
|
|
125
|
+
"cargo": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"properties": {
|
|
128
|
+
"enabled": {
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"default": true,
|
|
131
|
+
"description": "Whether to enable Cargo.toml version handling"
|
|
132
|
+
},
|
|
133
|
+
"paths": {
|
|
134
|
+
"type": "array",
|
|
135
|
+
"items": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"minLength": 1
|
|
138
|
+
},
|
|
139
|
+
"description": "Specify directories to search for Cargo.toml files"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"additionalProperties": false,
|
|
143
|
+
"description": "Configuration options for Rust/Cargo support"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"required": ["versionPrefix", "preset", "updateInternalDependencies"],
|
|
147
|
+
"additionalProperties": false
|
|
148
|
+
}
|