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