Skip to content

Commit 04e32b2

Browse files
Jake ChampionJakeChampion
authored andcommitted
fix --version functionality by using the correct path for cli's package.json
1 parent 3857c12 commit 04e32b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/printVersion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { dirname, join } from "node:path";
44
const __dirname = dirname(fileURLToPath(import.meta.url));
55

66
export async function printVersion() {
7-
const packageJson = await readFile(join(__dirname, "/package.json"), {
7+
const packageJson = await readFile(join(__dirname, "../package.json"), {
88
encoding: "utf-8",
99
});
1010
const version = JSON.parse(packageJson).version;

0 commit comments

Comments
 (0)