import { register } from "node:module";
import { existsSync } from "node:fs";
import { dirname, join } from "node:path";
import { fileURLToPath, pathToFileURL } from "node:url";

//#region src/deploy/sniffer-loader.ts
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const mjsPath = join(__dirname, "sniffer-hooks.mjs");
const tsPath = join(__dirname, "sniffer-hooks.ts");
const hooksPath = existsSync(mjsPath) ? mjsPath : tsPath;
register(pathToFileURL(hooksPath).href, import.meta.url);

//#endregion
//# sourceMappingURL=sniffer-loader.mjs.map