Skip to content

Commit

Permalink
Merge pull request #67 from unjust/v5.x
Browse files Browse the repository at this point in the history
feature(project): export transformLearningObjectives para usar en script create-cohort-project de currícula
  • Loading branch information
mfdebian authored Mar 6, 2023
2 parents 161bd98 + 68fe027 commit 53484b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 53484b1

Please sign in to comment.