-
Notifications
You must be signed in to change notification settings - Fork 704
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Honor the
--exclude
option on a list of files (#387)
- Loading branch information
1 parent
e748236
commit 6ddb7f5
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -272,7 +272,7 @@ export class Application extends ChildableComponent<Application, AbstractCompone | |
file = Path.resolve(file); | ||
if (FS.statSync(file).isDirectory()) { | ||
add(file); | ||
} else { | ||
} else if (exclude && !exclude.match(file)) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
steveschmitt
|
||
files.push(file); | ||
} | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit 6ddb7f5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit seems to cause all files to be excluded when --exclude
is omitted. I'm not getting any output generated unless I put a dummy --exclude xx
in the command line.
Maybe this should have been