Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
fix: Critical getActionGraph bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Max committed Mar 3, 2021
1 parent 4425842 commit 9e2e54b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/scheduler/src/getActionGraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export function getActionGraph(opts: GetActionGraphOptions) {
const include = [
resolvedInputPattern.replace(new RegExp(`^${rootDir}\/*`), '')
];
if (files) {
if (files.length) {
const matchedFiles = multimatch(files, [resolvedInputPattern]);
if (matchedFiles.length) {
resolvedInput = {
Expand Down Expand Up @@ -180,7 +180,7 @@ export function getActionGraph(opts: GetActionGraphOptions) {
};
}

if (files) {
if (files.length) {
const matchedFiles = multimatch(
files.filter(file => file.startsWith(finalInput.rootDir)),
[
Expand Down

0 comments on commit 9e2e54b

Please sign in to comment.