We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea16110 commit 4968ef3Copy full SHA for 4968ef3
src/update.ts
@@ -46,15 +46,17 @@ export function checkForUpdate(): void {
46
47
try {
48
if (IS_NPX) return;
49
- if (!process.stderr.isTTY) return;
50
51
const notifier = updateNotifier({
52
pkg: { name: PACKAGE_NAME, version: PACKAGE_VERSION },
53
updateCheckInterval: ONE_DAY_MS,
54
});
55
+ // Always run check() so the background process is spawned and the cache
56
+ // stays fresh, even when stderr is not a TTY. Only gate the display.
57
notifier.check();
58
59
+ if (!process.stderr.isTTY) return;
60
if (!notifier.update) return;
61
if (!semverGt(notifier.update.latest, PACKAGE_VERSION)) return;
62
0 commit comments