chore(package.json): update package version from 2.0.19 to 2.1.0

refactor(cli.ts): uncomment checkIsLatestVersion function call to ensure the latest version of the package is being used
This commit is contained in:
di-sukharev
2023-05-26 12:16:56 +08:00
parent 4f57201e98
commit 50e7cd3576
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "opencommit", "name": "opencommit",
"version": "2.0.19", "version": "2.1.0",
"description": "Auto-generate impressive commits in 1 second. Killing lame commits with AI 🤯🔫", "description": "Auto-generate impressive commits in 1 second. Killing lame commits with AI 🤯🔫",
"keywords": [ "keywords": [
"git", "git",
+2 -2
View File
@@ -7,7 +7,7 @@ import { configCommand } from './commands/config';
import { hookCommand, isHookCalled } from './commands/githook.js'; import { hookCommand, isHookCalled } from './commands/githook.js';
import { prepareCommitMessageHook } from './commands/prepare-commit-msg-hook'; import { prepareCommitMessageHook } from './commands/prepare-commit-msg-hook';
import { commit } from './commands/commit'; import { commit } from './commands/commit';
// import { checkIsLatestVersion } from './utils/checkIsLatestVersion'; import { checkIsLatestVersion } from './utils/checkIsLatestVersion';
const extraArgs = process.argv.slice(2); const extraArgs = process.argv.slice(2);
@@ -21,7 +21,7 @@ cli(
help: { description: packageJSON.description } help: { description: packageJSON.description }
}, },
async () => { async () => {
// await checkIsLatestVersion(); await checkIsLatestVersion();
if (await isHookCalled()) { if (await isHookCalled()) {
prepareCommitMessageHook(); prepareCommitMessageHook();