Skip to content

Commit d7b020f

Browse files
Fix hard-coded CLI version, use package.json consistent with client
1 parent f22aa1f commit d7b020f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import {
2020
import { handleError } from "./error-handler.js";
2121
import { createTransport, TransportOptions } from "./transport.js";
2222

23+
import packageJson from "../package.json" with { type: "json" };
24+
2325
type Args = {
2426
target: string[];
2527
method?: string;
@@ -89,7 +91,7 @@ async function callMethod(args: Args): Promise<void> {
8991
const transport = createTransport(transportOptions);
9092
const client = new Client({
9193
name: "inspector-cli",
92-
version: "0.5.1",
94+
version: packageJson.version,
9395
});
9496

9597
try {

0 commit comments

Comments
 (0)