Fix hard-coded CLI version, use package.json consistent with client
This commit is contained in:
parent
f22aa1f5e2
commit
d7b020fdda
1 changed files with 3 additions and 1 deletions
|
|
@ -20,6 +20,8 @@ import {
|
||||||
import { handleError } from "./error-handler.js";
|
import { handleError } from "./error-handler.js";
|
||||||
import { createTransport, TransportOptions } from "./transport.js";
|
import { createTransport, TransportOptions } from "./transport.js";
|
||||||
|
|
||||||
|
import packageJson from "../package.json" with { type: "json" };
|
||||||
|
|
||||||
type Args = {
|
type Args = {
|
||||||
target: string[];
|
target: string[];
|
||||||
method?: string;
|
method?: string;
|
||||||
|
|
@ -89,7 +91,7 @@ async function callMethod(args: Args): Promise<void> {
|
||||||
const transport = createTransport(transportOptions);
|
const transport = createTransport(transportOptions);
|
||||||
const client = new Client({
|
const client = new Client({
|
||||||
name: "inspector-cli",
|
name: "inspector-cli",
|
||||||
version: "0.5.1",
|
version: packageJson.version,
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue