Skip to content

Commit a7af55d

Browse files
committed
feat(checkIsLatestVersion.ts): add outro message from @clack/prompts to warn user about not using the latest stable version of OpenCommit
1 parent 5c540ab commit a7af55d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/checkIsLatestVersion.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { getOpenCommitLatestVersion } from '../api';
22
import currentPackage from '../../package.json' assert { type: 'json' };
33
import chalk from 'chalk';
4+
import { outro } from '@clack/prompts';
45

56
export const checkIsLatestVersion = async () => {
67
const latestVersion = await getOpenCommitLatestVersion();
@@ -9,7 +10,7 @@ export const checkIsLatestVersion = async () => {
910
const currentVersion = currentPackage.version;
1011

1112
if (currentVersion !== latestVersion) {
12-
console.warn(
13+
outro(
1314
chalk.yellow(
1415
`
1516
You are not using the latest stable version of OpenCommit with new features and bug fixes.

0 commit comments

Comments
 (0)