From b309800d3ec587d4bcd10e08c841a8c8753489eb Mon Sep 17 00:00:00 2001 From: Liu Date: Tue, 24 Nov 2026 22:00:47 +0800 Subject: [PATCH] build: allow release scope in commit message check .npmrc uses chore(release): %s again, and the commit-msg hook accepts "release" alongside lib/ directory names, styles and widgets. --- .npmrc | 2 +- scripts/check-commit-msg.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.npmrc b/.npmrc index 9a340df4..fb2e0fa0 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1 @@ -message=chore: release %s +message=chore(release): %s diff --git a/scripts/check-commit-msg.mjs b/scripts/check-commit-msg.mjs index cb9febb1..d2390577 100644 --- a/scripts/check-commit-msg.mjs +++ b/scripts/check-commit-msg.mjs @@ -13,7 +13,7 @@ const root = join(dirname(fileURLToPath(import.meta.url)), ".."); const SCOPES = readdirSync(join(root, "lib"), { withFileTypes: true }) .filter((entry) => entry.isDirectory()) .map((entry) => entry.name) - .concat(["styles", "widgets"]) + .concat(["styles", "widgets", "release"]) .sort(); const file = process.argv[2];