Skip to content

Commit 40b4edb

Browse files
committedJan 15, 2025
feat: more colors for semantic commit tags
1 parent 7fafd9a commit 40b4edb

File tree

3 files changed

+269
-264
lines changed

3 files changed

+269
-264
lines changed
 

‎package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bumpp",
33
"version": "9.10.0",
4-
"packageManager": "pnpm@9.15.3",
4+
"packageManager": "pnpm@9.15.4",
55
"description": "Bump version, commit changes, tag, and push to Git",
66
"author": {
77
"name": "James Messinger",
@@ -72,13 +72,13 @@
7272
"tinyglobby": "^0.2.10"
7373
},
7474
"devDependencies": {
75-
"@antfu/eslint-config": "^3.12.2",
75+
"@antfu/eslint-config": "^3.14.0",
7676
"@types/js-yaml": "^4.0.9",
77-
"@types/node": "^22.10.5",
77+
"@types/node": "^22.10.6",
7878
"@types/prompts": "^2.4.9",
7979
"@types/semver": "^7.5.8",
8080
"args-tokenizer": "^0.3.0",
81-
"eslint": "^9.17.0",
81+
"eslint": "^9.18.0",
8282
"esno": "^4.8.0",
8383
"log-symbols": "^7.0.0",
8484
"npm-check": "^6.0.1",

‎pnpm-lock.yaml

+247-258
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/print-commits.ts

+18-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,30 @@ import c from 'picocolors'
33
import { x } from 'tinyexec'
44

55
const messageColorMap: Record<string, (c: string) => string> = {
6-
chore: c.gray,
7-
fix: c.yellow,
86
feat: c.green,
7+
feature: c.green,
8+
99
refactor: c.cyan,
10+
style: c.cyan,
11+
1012
docs: c.blue,
1113
doc: c.blue,
14+
types: c.blue,
15+
type: c.blue,
16+
17+
chore: c.gray,
1218
ci: c.gray,
1319
build: c.gray,
20+
deps: c.gray,
21+
dev: c.gray,
22+
23+
fix: c.yellow,
24+
test: c.yellow,
25+
26+
perf: c.magenta,
27+
28+
revert: c.red,
29+
breaking: c.red,
1430
}
1531

1632
interface ParsedCommit {

0 commit comments

Comments
 (0)
Please sign in to comment.