// Force strict mode and setup for ESM
"use strict";
import {
  init_esbuild_shims
} from "./chunk-A4BMJM77.js";
import {
  __name
} from "./chunk-J2S4EL5Y.js";

// packages/cli/src/utils/version.ts
init_esbuild_shims();

// packages/cli/src/utils/package.ts
init_esbuild_shims();
import { fileURLToPath } from "node:url";
import path from "node:path";
var __filename = fileURLToPath(import.meta.url);
var __dirname = path.dirname(__filename);
var packageJson;
async function getPackageJson() {
  if (packageJson) {
    return packageJson;
  }
  const { readPackageUp } = await import("./read-package-up-ER5OJUGP.js");
  const result = await readPackageUp({ cwd: __dirname });
  if (!result) {
    return;
  }
  packageJson = result.packageJson;
  return packageJson;
}
__name(getPackageJson, "getPackageJson");

// packages/cli/src/utils/version.ts
async function getCliVersion() {
  const pkgJson = await getPackageJson();
  return "0.19.6";
}
__name(getCliVersion, "getCliVersion");

export {
  getPackageJson,
  getCliVersion
};
/**
 * @license
 * Copyright 2025 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
