"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const module_1=__importDefault(require("module")),path_1=__importDefault(require("path")),originalResolveFilename=module_1.default._resolveFilename;module_1.default._resolveFilename=function(e,t,a){if(e.startsWith("@b/")){const l=e.replace("@b/",""),o=[path_1.default.join(__dirname,"..",l),path_1.default.join(__dirname,"..","..","src",l),path_1.default.join(process.cwd(),"backend","src",l),path_1.default.join(process.cwd(),"src",l)];for(const e of o)try{return originalResolveFilename.call(this,e,t,a)}catch(e){}}if(e.startsWith("@db/")){const l=e.replace("@db/",""),o=[path_1.default.join(__dirname,"..","..","models",l),path_1.default.join(process.cwd(),"backend","models",l),path_1.default.join(process.cwd(),"models",l)];for(const e of o)try{return originalResolveFilename.call(this,e,t,a)}catch(e){}}return originalResolveFilename.call(this,e,t,a)};exports.default={};