Skip to content

Commit 031cfbe

Browse files
authored
chore: add picocolors modules & delete useless log (#691)
1 parent 97af662 commit 031cfbe

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"conventional-changelog-cli": "^4.1.0",
4242
"dotenv": "^16.3.1",
4343
"lint-staged": "^15.2.2",
44+
"picocolors": "^1.0.1",
4445
"prettier": "^3.2.5",
4546
"prettier-plugin-tailwindcss": "0.5.13",
4647
"simple-git-hooks": "2.11.1",

pnpm-lock.yaml

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

scripts/verify-commit.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ const commitRE =
1010
/^(revert: )?(feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release)(\(.+\))?: .{1,50}/;
1111

1212
if (!commitRE.test(msg)) {
13-
console.log();
1413
console.error(
15-
` ${pico.white(pico.bgRed(" ERROR "))} ${pico.red(`invalid commit message format.`)}\n\n` +
14+
`
15+
${pico.white(pico.bgRed(" ERROR "))} ${pico.red(`invalid commit message format.`)}\n\n` +
1616
pico.red(
1717
` Proper commit message format is required for automated changelog generation. Examples:\n\n`,
1818
) +

0 commit comments

Comments
 (0)