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.
This commit is contained in:
Liu
2026-11-24 22:00:47 +08:00
parent 08778d8bf6
commit b309800d3e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
message=chore: release %s
message=chore(release): %s
+1 -1
View File
@@ -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];