import * as fs from "node:fs";
import * as path from "node:path";
import { fileURLToPath } from "node:url";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
export function getPackageRoot() {
    return path.resolve(__dirname, "..");
}
export function readPackageJson() {
    const packagePath = path.join(getPackageRoot(), "package.json");
    return JSON.parse(fs.readFileSync(packagePath, "utf-8"));
}
export function getCliVersion() {
    return readPackageJson().version;
}
//# sourceMappingURL=package-info.js.map