diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts index 377aa3c9..2f72cbea 100644 --- a/packages/cli/src/index.ts +++ b/packages/cli/src/index.ts @@ -3,7 +3,6 @@ import fsPromises from 'node:fs/promises'; import { Command } from 'commander'; -import { findUp } from 'find-up'; import build from './commands/build.js'; import lint from './commands/lint.js'; @@ -14,7 +13,7 @@ import watch from './commands/watch.js'; (async () => { const program = new Command(); - const packageJsonLocation = await findUp('package.json'); + const packageJsonLocation = new URL('../package.json', import.meta.url); const packageJsonFileContents = await fsPromises.readFile(packageJsonLocation!, 'utf-8'); const packageJson = JSON.parse(packageJsonFileContents);