@nx/remix
Version:
21 lines (20 loc) • 685 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.REMIX_PROPERTY_MAPPINGS = void 0;
exports.getConfigFilePath = getConfigFilePath;
const devkit_1 = require("@nx/devkit");
exports.REMIX_PROPERTY_MAPPINGS = {
sourcemap: 'sourcemap',
devServerPort: 'port',
command: 'command',
manual: 'manual',
tlsKey: 'tls-key',
tlsCert: 'tls-cert',
};
function getConfigFilePath(tree, root) {
return [
(0, devkit_1.joinPathFragments)(root, `remix.config.js`),
(0, devkit_1.joinPathFragments)(root, `remix.config.cjs`),
(0, devkit_1.joinPathFragments)(root, `remix.config.mjs`),
].find((f) => tree.exists(f));
}