expressmultithread
Version:
Fast, light-weight and low dependency [Express.js](https://www.npmjs.com/package/express) multithreaded router.
11 lines • 576 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isCompiled = void 0;
const fs_1 = require("fs");
const resolvePath_1 = require("../functions/utils/resolvePath");
const pathJs = (0, resolvePath_1.resolvePath)("./em.config.js");
const pathTs = (0, resolvePath_1.resolvePath)("./em.config.ts");
if (!(0, fs_1.existsSync)(pathJs) && !(0, fs_1.existsSync)(pathTs))
throw new Error("Missing ExpressMultithread configuration file (em.config.{ts|js})");
exports.isCompiled = (0, fs_1.existsSync)(pathJs);
//# sourceMappingURL=isCompiled.js.map