Skip to content

Commit

Permalink
[INTERNAL] TaskRepository: Remove #addTask API
Browse files Browse the repository at this point in the history
Custom tasks shall now be provided as extensions in the ProjectGraph
  • Loading branch information
RandomByte committed May 20, 2022
1 parent 81130d7 commit 5a6a4e7
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/tasks/taskRepository.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,11 @@ function getTask(taskName) {
}
}

function addTask({name, specVersion, taskPath}) {
if (taskInfos[name]) {
throw new Error(`taskRepository: A task with the name ${name} has already been registered`);
}
taskInfos[name] = {
path: taskPath,
specVersion
};
}

function getAllTaskNames() {
return Object.keys(taskInfos);
}

module.exports = {
getTask,
addTask,
getAllTaskNames
};

0 comments on commit 5a6a4e7

Please sign in to comment.