// src/loadPackageConfig.ts
import { readFile } from "fs/promises";

// src/lib/initCwd.ts
function INIT_CWD() {
  return process.env.INIT_CWD ?? process.cwd();
}

// src/loadPackageConfig.ts
var loadPackageConfig = async () => {
  const pkg = INIT_CWD();
  const pkgConfig = await readFile(`${pkg}/package.json`, { encoding: "utf8" });
  return JSON.parse(pkgConfig);
};
export {
  loadPackageConfig
};
//# sourceMappingURL=loadPackageConfig.mjs.map