Skip to content

Commit

Permalink
fix: do not swallow already detected deprecated usage by last task (#991
Browse files Browse the repository at this point in the history
)

The deprecation warning instructing users to remove `git add` from their tasks
was not shown if a valid task followed the deprecated one.
  • Loading branch information
bobisjan authored Jul 13, 2021
1 parent 4f9a146 commit 7734156
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/runAll.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ const runAll = async (
matchedFiles.add(file)
})

hasDeprecatedGitAdd = subTasks.some((subTask) => subTask.command === 'git add')
hasDeprecatedGitAdd =
hasDeprecatedGitAdd || subTasks.some((subTask) => subTask.command === 'git add')

chunkListrTasks.push({
title: `Running tasks for ${task.pattern}`,
Expand Down

0 comments on commit 7734156

Please sign in to comment.