Skip to content

Commit f94c1a0

Browse files
fix: fixing cli updates in theory
1 parent aca61f6 commit f94c1a0

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

src/cli.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ import setupCommand from './commands/setup.js';
99
import modelCommand from './commands/model.js';
1010
import hookCommand, { isCalledFromGitHook } from './commands/hook.js';
1111

12-
const notifier = updateNotifier({ pkg });
12+
const notifier = updateNotifier({
13+
pkg,
14+
distTag: version.includes('-') ? 'develop' : 'latest',
15+
});
16+
1317
if (version !== '0.0.0-semantic-release' && version.includes('-')) {
14-
notifier.notify();
18+
notifier.notify();
1519
}
1620

1721
const rawArgv = process.argv.slice(2);
@@ -46,18 +50,21 @@ cli(
4650
},
4751
type: {
4852
type: String,
49-
description: 'Git commit message format (default: conventional). Supports conventional and gitmoji',
53+
description:
54+
'Git commit message format (default: conventional). Supports conventional and gitmoji',
5055
alias: 't',
5156
},
5257
confirm: {
5358
type: Boolean,
54-
description: 'Skip confirmation when committing after message generation (default: false)',
59+
description:
60+
'Skip confirmation when committing after message generation (default: false)',
5561
alias: 'y',
5662
default: false,
5763
},
5864
clipboard: {
5965
type: Boolean,
60-
description: 'Copy the selected message to the clipboard instead of committing (default: false)',
66+
description:
67+
'Copy the selected message to the clipboard instead of committing (default: false)',
6168
alias: 'c',
6269
default: false,
6370
},

0 commit comments

Comments
 (0)