"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = __importDefault(require("path"));
const env_vars_1 = __importDefault(require("root/services/env-vars"));
const getPrjRoot = () => {
    if (env_vars_1.default.isDev) {
        return process.cwd();
    }
    return env_vars_1.default.prjPath;
};
exports.getPrjRoot = getPrjRoot;
const getNodeModulesRoot = () => path_1.default.join(getPrjRoot(), 'node_modules');
exports.getNodeModulesRoot = getNodeModulesRoot;
const getDistRoot = () => path_1.default.join(getPrjRoot(), 'dist');
const getSrcRoot = () => path_1.default.join(getPrjRoot(), 'src');
exports.getSrcRoot = getSrcRoot;
const getEndpointsRoot = () => path_1.default.join(getSrcRoot(), 'endpoints');
exports.getEndpointsRoot = getEndpointsRoot;
const getDistEndpointsRoot = () => path_1.default.join(getDistRoot(), 'endpoints');
exports.getDistEndpointsRoot = getDistEndpointsRoot;
const getModelsRoot = () => path_1.default.join(getSrcRoot(), 'models');
exports.getModelsRoot = getModelsRoot;
const getAuthorizersRoot = () => path_1.default.join(getSrcRoot(), 'authorizers');
exports.getAuthorizersRoot = getAuthorizersRoot;
//# sourceMappingURL=index.js.map