We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db4ef2f commit 80fa3d7Copy full SHA for 80fa3d7
1 file changed
src/cli/index.ts
@@ -71,7 +71,11 @@ import { loadSMSConfig } from '../hooks/sms-notify.js';
71
import { spawn } from 'child_process';
72
import { homedir } from 'os';
73
74
-const VERSION = '0.5.5';
+// Read version from package.json
75
+import { createRequire } from 'module';
76
+const require = createRequire(import.meta.url);
77
+const pkg = require('../../package.json');
78
+const VERSION = pkg.version;
79
80
// Check for updates on CLI startup
81
UpdateChecker.checkForUpdates(VERSION, true).catch(() => {
0 commit comments