forked from douglasduteil/gulp-header
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check if the current file is a folder, and if so do not try to add headers. Trying to add the headers on folders gives errors...
- Loading branch information
1 parent
237442b
commit 6d3506e
Showing
1 changed file
with
19 additions
and
16 deletions.
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
6d3506e
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.
Trying to build a 3rd party module, using gulp-header, I'm running into trouble with this change. The gulpfile tries to add a header to a file generated by a pipe, and thus the file doesn't exist in the filesystem yet, and this causes fs.lstatSync to throw an exception, silently aborting the stream.
nvm, just noticed there's a pull request dealing with this already