From fbc2e61f49160c772fe677fb7ed80005194b2b66 Mon Sep 17 00:00:00 2001 From: Soybean Date: Sat, 27 Apr 2024 13:32:45 +0800 Subject: [PATCH] feat(packages): @sa/scripts: add new commit type `optimize` and commit scope `packages` --- packages/scripts/src/config/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/scripts/src/config/index.ts b/packages/scripts/src/config/index.ts index e5978d14..4f84e3d2 100644 --- a/packages/scripts/src/config/index.ts +++ b/packages/scripts/src/config/index.ts @@ -19,6 +19,7 @@ const defaultOptions: CliOption = { ['style', 'Changes that do not affect the meaning of the code'], ['refactor', 'A code change that neither fixes a bug nor adds a feature'], ['perf', 'A code change that improves performance'], + ['optimize', 'A code change that optimizes code quality'], ['test', 'Adding missing tests or correcting existing tests'], ['build', 'Changes that affect the build system or external dependencies'], ['ci', 'Changes to our CI configuration files and scripts'], @@ -27,6 +28,7 @@ const defaultOptions: CliOption = { ], gitCommitScopes: [ ['projects', 'project'], + ['packages', 'packages'], ['components', 'components'], ['hooks', 'hook functions'], ['utils', 'utils functions'],