@nx/remix
Version:
14 lines (13 loc) • 467 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizeOptions = normalizeOptions;
async function normalizeOptions(tree, schema) {
const pathToRouteFile = schema.path;
if (!tree.exists(pathToRouteFile)) {
throw new Error(`Route file specified does not exist "${pathToRouteFile}". Please ensure you pass a correct path to the file.`);
}
return {
...schema,
path: pathToRouteFile,
};
}