Skip to content

Commit

Permalink
feat: add processor.has to check for known files
Browse files Browse the repository at this point in the history
  • Loading branch information
tivac committed Jan 9, 2019
1 parent d5ca5c0 commit df5ac6f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/processor/processor.js
Expand Up @@ -143,6 +143,13 @@ class Processor {
return files;
}

// Check if a file exists in the currently-processed set
has(input) {
const file = this._normalize(input);

return file in this._files;
}

// Mark a file and everything that depends on it as invalid so
// it can be overwritten
invalidate(input) {
Expand Down

0 comments on commit df5ac6f

Please sign in to comment.