Skip to content

Commit 5a6a4e7

Browse files
committed
[INTERNAL] TaskRepository: Remove #addTask API
Custom tasks shall now be provided as extensions in the ProjectGraph
1 parent 81130d7 commit 5a6a4e7

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

lib/tasks/taskRepository.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,11 @@ function getTask(taskName) {
4444
}
4545
}
4646

47-
function addTask({name, specVersion, taskPath}) {
48-
if (taskInfos[name]) {
49-
throw new Error(`taskRepository: A task with the name ${name} has already been registered`);
50-
}
51-
taskInfos[name] = {
52-
path: taskPath,
53-
specVersion
54-
};
55-
}
56-
5747
function getAllTaskNames() {
5848
return Object.keys(taskInfos);
5949
}
6050

6151
module.exports = {
6252
getTask,
63-
addTask,
6453
getAllTaskNames
6554
};

0 commit comments

Comments
 (0)