diff --git a/cli/src/index.ts b/cli/src/index.ts index 2b0c4f53..dea6e296 100644 --- a/cli/src/index.ts +++ b/cli/src/index.ts @@ -20,6 +20,8 @@ import { import { handleError } from "./error-handler.js"; import { createTransport, TransportOptions } from "./transport.js"; +import packageJson from "../package.json" with { type: "json" }; + type Args = { target: string[]; method?: string; @@ -89,7 +91,7 @@ async function callMethod(args: Args): Promise { const transport = createTransport(transportOptions); const client = new Client({ name: "inspector-cli", - version: "0.5.1", + version: packageJson.version, }); try {