From fcdb8feea0312fbdf751d7500d8bf30b0202ad79 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath <2+defunkt@users.noreply.github.com> Date: Thu, 29 Jan 2026 15:22:39 -0800 Subject: [PATCH] fix cli isApp --- src/cli/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cli/index.ts b/src/cli/index.ts index afaeeee..beea7b6 100755 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -1,5 +1,4 @@ #!/usr/bin/env bun -import { APPS_DIR } from '$apps' import type { App, LogLine } from '@types' import { loadGitignore } from '@gitignore' import { program } from 'commander' @@ -295,7 +294,7 @@ async function getApp(name: string) { function isApp(): boolean { try { - const pkg = JSON.parse(join(process.cwd(), 'package.json')) + const pkg = JSON.parse(readFileSync(join(process.cwd(), 'package.json'), 'utf-8')) return !!pkg?.scripts?.toes } catch (e) { return false