"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRegistry = void 0;
const path_1 = __importDefault(require("path"));
const fs_1 = __importDefault(require("fs"));
const getRegistry = () => {
    const registryPath = path_1.default.resolve(__dirname, "../../../../registry.json");
    if (!fs_1.default.existsSync(registryPath)) {
        throw new Error("Registry directory not found");
    }
    const rawRegistryContent = fs_1.default.readFileSync(registryPath, "utf-8");
    const registry = JSON.parse(rawRegistryContent);
    return registry;
};
exports.getRegistry = getRegistry;
