Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plugin-loader): add
cz.config.cjs
config profiles (#73)
`cz.config.js` is provide who not use commitlint And `cz.config.cjs` is provide ESM project can use CommonJS config profile item Co-authored-by: Zhengqbbb <1074059947@qq.com>
- Loading branch information
Showing
8 changed files
with
20 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
packages/@cz-git/plugin-loader/__tests__/fixtures/1-basic-cz-js/.cz.js
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
packages/@cz-git/plugin-loader/__tests__/fixtures/1-basic-cz-js/cz.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
useEmoji: true, | ||
} |
13 changes: 0 additions & 13 deletions
13
packages/@cz-git/plugin-loader/__tests__/fixtures/3-config-function/.cz.js
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
packages/@cz-git/plugin-loader/__tests__/fixtures/3-config-function/cz.config.cjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const mockUseEmoji = () => process.env.TEST && true | ||
const mockCustomIssuePrefixsAlign = () => { | ||
return new Promise((resolve) => { | ||
setTimeout(() => { | ||
resolve('top') | ||
}, 10) | ||
}) | ||
} | ||
|
||
module.exports = { | ||
useEmoji: mockUseEmoji, | ||
customIssuePrefixsAlign: mockCustomIssuePrefixsAlign, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a915085
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is breaking changes here, it breaks
1.3.11
usage of.cz.js
config. Maybe should consider bump major version or stated on changelogs.a915085
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sorry. I should notice it. But I remember my docs not record
.cz.js
beforev1.3.12
.But anyway I should major the version. Sorry trouble for you.
I will add BREAKCHANGE of changelog
a915085
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No big deal, just caught it by surprise. Thanks for your work