summaryrefslogtreecommitdiff
path: root/packages/cli/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src')
-rw-r--r--packages/cli/src/ui/utils/updateCheck.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/cli/src/ui/utils/updateCheck.ts b/packages/cli/src/ui/utils/updateCheck.ts
index 9e2ec233..6efe21ed 100644
--- a/packages/cli/src/ui/utils/updateCheck.ts
+++ b/packages/cli/src/ui/utils/updateCheck.ts
@@ -6,12 +6,11 @@
import updateNotifier from 'update-notifier';
import { readPackageUp } from 'read-package-up';
-import process from 'node:process';
export async function checkForUpdates(): Promise<string | null> {
try {
// read-package-up looks for the closest package.json from cwd
- const pkgResult = await readPackageUp({ cwd: process.cwd() });
+ const pkgResult = await readPackageUp({ cwd: __dirname });
if (!pkgResult) {
return null;
}