kvalita 1.9.0 → 1.10.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 +11 -1
- package/configs/commitlint.json +5 -5
- package/configs/lefthook-biome.json +11 -11
- package/configs/lefthook-commitlint.json +8 -8
- package/configs/lefthook-typescript.json +9 -9
- package/configs/semantic-release-dry-run.json +18 -0
- package/configs/semantic-release.json +19 -18
- package/package.json +15 -14
package/README.md
CHANGED
|
@@ -50,10 +50,20 @@ Use the `--extends` flag in your CI workflow:
|
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
This configuration includes:
|
|
53
|
-
- Branches: `main`, `next` (prerelease), `beta` (prerelease)
|
|
53
|
+
- Branches: `main`, `next` (prerelease), `beta` (prerelease), `alpha` (prerelease)
|
|
54
54
|
- `conventionalcommits` preset with `feat!:` syntax for breaking changes
|
|
55
55
|
- [npm provenance](https://docs.npmjs.com/generating-provenance-statements) (requires `id-token: write` permission)
|
|
56
56
|
|
|
57
|
+
#### Dry Run
|
|
58
|
+
|
|
59
|
+
To preview the next version without publishing (e.g., in PR checks):
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
bunx semantic-release --dry-run --extends kvalita/semantic-release-dry-run
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
This only runs the commit analyzer — no npm or GitHub tokens required.
|
|
66
|
+
|
|
57
67
|
### [Lefthook](https://github.com/evilmartians/lefthook) Configuration
|
|
58
68
|
|
|
59
69
|
Create a `lefthook.json` file in your project root and extend the hooks you need:
|
package/configs/commitlint.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"$schema": "https://json.schemastore.org/commitlintrc.json",
|
|
3
|
+
"extends": ["@commitlint/config-conventional"],
|
|
4
|
+
"rules": {
|
|
5
|
+
"subject-case": [2, "always", "sentence-case"]
|
|
6
|
+
}
|
|
7
7
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
"$schema": "https://json.schemastore.org/lefthook.json",
|
|
3
|
+
"pre-commit": {
|
|
4
|
+
"parallel": true,
|
|
5
|
+
"commands": {
|
|
6
|
+
"lint:biome": {
|
|
7
|
+
"glob": "*.{ts,tsx,js,jsx,json,jsonc,css,graphql,gql}",
|
|
8
|
+
"run": "bunx @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true {staged_files}",
|
|
9
|
+
"stage_fixed": true
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
13
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
"$schema": "https://json.schemastore.org/lefthook.json",
|
|
3
|
+
"commit-msg": {
|
|
4
|
+
"commands": {
|
|
5
|
+
"lint:commitlint": {
|
|
6
|
+
"run": "bunx commitlint --config ./commitlint.json --edit {1}"
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
10
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
"$schema": "https://json.schemastore.org/lefthook.json",
|
|
3
|
+
"pre-commit": {
|
|
4
|
+
"commands": {
|
|
5
|
+
"typescript": {
|
|
6
|
+
"glob": "*.{ts,tsx}",
|
|
7
|
+
"run": "bunx tsc --noEmit"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
11
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/semantic-release.json",
|
|
3
|
+
"branches": [
|
|
4
|
+
"main",
|
|
5
|
+
{ "name": "beta", "channel": "beta", "prerelease": "beta" },
|
|
6
|
+
{ "name": "alpha", "channel": "alpha", "prerelease": "alpha" },
|
|
7
|
+
{ "name": "next", "channel": "next", "prerelease": "next" }
|
|
8
|
+
],
|
|
9
|
+
"plugins": [
|
|
10
|
+
[
|
|
11
|
+
"@semantic-release/commit-analyzer",
|
|
12
|
+
{
|
|
13
|
+
"preset": "conventionalcommits",
|
|
14
|
+
"releaseRules": [{ "breaking": true, "release": "major" }]
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
"$schema": "https://json.schemastore.org/semantic-release.json",
|
|
3
|
+
"branches": [
|
|
4
|
+
"main",
|
|
5
|
+
{ "name": "beta", "channel": "beta", "prerelease": "beta" },
|
|
6
|
+
{ "name": "alpha", "channel": "alpha", "prerelease": "alpha" },
|
|
7
|
+
{ "name": "next", "channel": "next", "prerelease": "next" }
|
|
8
|
+
],
|
|
9
|
+
"plugins": [
|
|
10
|
+
[
|
|
11
|
+
"@semantic-release/commit-analyzer",
|
|
12
|
+
{
|
|
13
|
+
"preset": "conventionalcommits",
|
|
14
|
+
"releaseRules": [{ "breaking": true, "release": "major" }]
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
["@semantic-release/release-notes-generator", { "preset": "conventionalcommits" }],
|
|
18
|
+
["@semantic-release/npm", { "provenance": true }],
|
|
19
|
+
"@semantic-release/github"
|
|
20
|
+
]
|
|
20
21
|
}
|
package/package.json
CHANGED
|
@@ -17,28 +17,29 @@
|
|
|
17
17
|
"exports": {
|
|
18
18
|
"./biome": "./configs/biome.json",
|
|
19
19
|
"./commitlint": "./configs/commitlint.json",
|
|
20
|
-
"./semantic-release": "./configs/semantic-release.json"
|
|
20
|
+
"./semantic-release": "./configs/semantic-release.json",
|
|
21
|
+
"./semantic-release-dry-run": "./configs/semantic-release-dry-run.json"
|
|
21
22
|
},
|
|
22
23
|
"scripts": {
|
|
23
24
|
"prepare": "lefthook install"
|
|
24
25
|
},
|
|
25
26
|
"peerDependencies": {
|
|
26
|
-
"@biomejs/biome": ">=2.
|
|
27
|
-
"@commitlint/cli": ">=
|
|
28
|
-
"@commitlint/config-conventional": ">=
|
|
29
|
-
"conventional-changelog-conventionalcommits": ">=
|
|
30
|
-
"lefthook": ">=1.0
|
|
31
|
-
"semantic-release": ">=
|
|
32
|
-
"typescript": ">=5.
|
|
27
|
+
"@biomejs/biome": ">=2.3.14",
|
|
28
|
+
"@commitlint/cli": ">=20.4.1",
|
|
29
|
+
"@commitlint/config-conventional": ">=20.4.1",
|
|
30
|
+
"conventional-changelog-conventionalcommits": ">=9.1.0",
|
|
31
|
+
"lefthook": ">=2.1.0",
|
|
32
|
+
"semantic-release": ">=25.0.3",
|
|
33
|
+
"typescript": ">=5.9.3"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"@biomejs/biome": "^2.3.
|
|
36
|
-
"@commitlint/cli": "^20.
|
|
37
|
-
"@commitlint/config-conventional": "^20.
|
|
36
|
+
"@biomejs/biome": "^2.3.14",
|
|
37
|
+
"@commitlint/cli": "^20.4.1",
|
|
38
|
+
"@commitlint/config-conventional": "^20.4.1",
|
|
38
39
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
39
|
-
"lefthook": "^2.0
|
|
40
|
-
"semantic-release": "^25.0.
|
|
40
|
+
"lefthook": "^2.1.0",
|
|
41
|
+
"semantic-release": "^25.0.3",
|
|
41
42
|
"typescript": "^5.9.3"
|
|
42
43
|
},
|
|
43
|
-
"version": "1.
|
|
44
|
+
"version": "1.10.0"
|
|
44
45
|
}
|