Skip to content

Commit 2d05da1

Browse files
committed
✨ feat: support GITMOJI_PATH env
close #40
1 parent 351f081 commit 2d05da1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/commitlint-plugin/src/gitmojiCode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const filePath = join(__dirname, 'gitmojis.json');
77
// Download gitmojis.json if it doesn't exist yet
88
if (!existsSync(filePath)) {
99
const url =
10+
process.env.GITMOJI_PATH ||
1011
'https://raw.githubusercontent.com/carloscuesta/gitmoji/master/src/data/gitmojis.json';
1112
try {
1213
// eslint-disable-next-line global-require

0 commit comments

Comments
 (0)