We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c540ab commit a7af55dCopy full SHA for a7af55d
src/utils/checkIsLatestVersion.ts
@@ -1,6 +1,7 @@
1
import { getOpenCommitLatestVersion } from '../api';
2
import currentPackage from '../../package.json' assert { type: 'json' };
3
import chalk from 'chalk';
4
+import { outro } from '@clack/prompts';
5
6
export const checkIsLatestVersion = async () => {
7
const latestVersion = await getOpenCommitLatestVersion();
@@ -9,7 +10,7 @@ export const checkIsLatestVersion = async () => {
9
10
const currentVersion = currentPackage.version;
11
12
if (currentVersion !== latestVersion) {
- console.warn(
13
+ outro(
14
chalk.yellow(
15
`
16
You are not using the latest stable version of OpenCommit with new features and bug fixes.
0 commit comments