From 9835e23a4633d080e7699808875afddbd3707882 Mon Sep 17 00:00:00 2001 From: Douglas Wade Date: Sun, 14 Jan 2024 10:14:18 -0800 Subject: [PATCH] fix(#435): fix path argument for finding version numbers --- packages/cli/src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);