import {
  init_cjs_shims
} from "./chunk-7GH3YGSC.js";

// src/lib/version.ts
init_cjs_shims();
var packageJsonUrl = "https://raw.githubusercontent.com/fragment-dev/homebrew-tap/main/package.json";
var getFragmentCliVersion = async (isBeta) => {
  const packageJson = await (await fetch(packageJsonUrl)).json();
  const env = isBeta ? "dev" : "prod";
  const version = packageJson[env];
  return version;
};

export {
  getFragmentCliVersion
};
