UNPKG

axios-mock-server

Version:
18 lines 783 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultConfig = exports.mockFileRegExp = void 0; var fs_1 = __importDefault(require("fs")); exports.mockFileRegExp = /\/(\$|@)/; exports.defaultConfig = { input: fs_1.default.existsSync('mocks') || !fs_1.default.existsSync('apis') ? 'mocks' : 'apis', target: 'es6', outputExt: 'js' }; exports.default = (function (rcFilePath) { if (rcFilePath === void 0) { rcFilePath = '.mockserverrc'; } return fs_1.default.existsSync(rcFilePath) ? JSON.parse(fs_1.default.readFileSync(rcFilePath, 'utf8')) : {}; }); //# sourceMappingURL=getConfig.js.map