| 1 |
'use strict'; |
| 2 |
|
| 3 |
const path = require('path'); |
| 4 |
const minimatch = require('minimatch'); |
| 5 |
|
| 6 |
const dot = { dot: true }; |
| 7 |
|
| 8 |
module.exports = function(dir, filename) { |
| 9 |
return !minimatch(path.resolve(dir, filename), path.join(dir, '**'), dot); |
| 10 |
}; |