import { require_semver } from './chunk-LTYLEVHC.js';
import { __toESM, __name } from './chunk-IBAHCH6O.js';

// src/lib/check-bun-version.ts
var import_semver = __toESM(require_semver(), 1);
var MIN_BUN_VERSION = "1.3.3";
function checkBunVersion() {
  const bunVersion = process.versions.bun;
  if (!bunVersion) return;
  if (!import_semver.default.gte(bunVersion, MIN_BUN_VERSION)) {
    throw new Error(
      `Varlock requires Bun >= ${MIN_BUN_VERSION}, but you are using Bun ${bunVersion}.
Please upgrade Bun by running: \`bun upgrade\`
Bun ${MIN_BUN_VERSION} introduced the \`--no-env-file\` flag which is required to prevent conflicts with varlock's own .env loading.`
    );
  }
}
__name(checkBunVersion, "checkBunVersion");

export { checkBunVersion };
//# sourceMappingURL=chunk-TZU7BNR4.js.map
//# sourceMappingURL=chunk-TZU7BNR4.js.map