From 68fe027749a9857b9f361b992211b59384e657d8 Mon Sep 17 00:00:00 2001 From: ivy Date: Mon, 6 Mar 2023 11:10:54 -0500 Subject: [PATCH] feature(project): exportamos transformLearningObjectives para usar en curricula, y mejora su nombre --- lib/project.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/project.js b/lib/project.js index 1655ca2..5887d0a 100644 --- a/lib/project.js +++ b/lib/project.js @@ -98,7 +98,8 @@ const findFlattenedChildren = (known, learningObjective) => { return leavesOnly; }; -const getLearningObjectives = async (dir, opts, meta) => { +// @description este funciĆ³n valida y "aplana" los learning objetives +export const transformLearningObjectives = async (dir, opts, meta) => { if (!meta || !meta.learningObjectives) { return undefined; } @@ -159,7 +160,7 @@ export const parseProject = async (dir, opts, pkg) => { throw new Error(`Invalid track "${track}". Expected "web-dev" or "ux".`); } - const learningObjectives = await getLearningObjectives(dir, opts, meta); + const learningObjectives = await transformLearningObjectives(dir, opts, meta); return { slug,