oathbound 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.ts +9 -7
- package/package.json +1 -1
package/cli.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { join, relative, dirname } from 'node:path';
|
|
|
11
11
|
import { tmpdir, homedir, platform } from 'node:os';
|
|
12
12
|
import { intro, outro, select, cancel, isCancel } from '@clack/prompts';
|
|
13
13
|
|
|
14
|
-
const VERSION = '0.3.
|
|
14
|
+
const VERSION = '0.3.1';
|
|
15
15
|
|
|
16
16
|
// --- Supabase ---
|
|
17
17
|
const SUPABASE_URL = 'https://mjnfqagwuewhgwbtrdgs.supabase.co';
|
|
@@ -774,14 +774,16 @@ if (subcommand === '--help' || subcommand === '-h') {
|
|
|
774
774
|
usage(0);
|
|
775
775
|
}
|
|
776
776
|
|
|
777
|
-
if (subcommand === '--version' || subcommand === '-v') {
|
|
778
|
-
console.log(`oathbound ${VERSION}`);
|
|
779
|
-
process.exit(0);
|
|
780
|
-
}
|
|
781
|
-
|
|
782
777
|
// Fire-and-forget auto-update on every command except verify (hooks must be fast)
|
|
783
778
|
if (subcommand !== 'verify') {
|
|
784
|
-
checkForUpdate().catch(() => {});
|
|
779
|
+
const updatePromise = checkForUpdate().catch(() => {});
|
|
780
|
+
|
|
781
|
+
if (subcommand === '--version' || subcommand === '-v') {
|
|
782
|
+
// Wait for update check so the user sees the notification
|
|
783
|
+
await updatePromise;
|
|
784
|
+
console.log(`oathbound ${VERSION}`);
|
|
785
|
+
process.exit(0);
|
|
786
|
+
}
|
|
785
787
|
}
|
|
786
788
|
|
|
787
789
|
if (subcommand === 'init') {
|