Skip to content

Commit

Permalink
fix(#435): fix path argument for finding version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-wade committed Jan 15, 2024
1 parent 6ee839f commit d6d9a68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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);

Expand Down

0 comments on commit d6d9a68

Please sign in to comment.