Skip to content

Commit bff6289

Browse files
committed
chore: melhora configuração cz commit pra listar escopos
1 parent 656801b commit bff6289

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

config/cz.config.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
const {readdirSync} = require('node:fs')
2+
const {resolve} = require('node:path')
3+
4+
const packages = readdirSync(resolve(__dirname, '..', 'packages'))
5+
16
// prettier-ignore
27
/** @type {import('cz-git').UserConfig['prompt']} */
38
module.exports = {
@@ -34,7 +39,7 @@ module.exports = {
3439
useAI: false,
3540
aiNumber: 1,
3641
themeColorCode: '',
37-
scopes: [],
42+
scopes: [...packages],
3843
allowCustomScopes: true,
3944
allowEmptyScopes: true,
4045
customScopesAlign: 'bottom',

0 commit comments

Comments
 (0)