| 22 | * Executes a glob pattern and pushes the results to a list. |
| 23 | */ |
| 24 | const findFiles = pattern => { |
| 25 | const files = [] |
| 26 | |
| 27 | globSync(pattern).forEach(file => { |
| 28 | files.push(path.resolve(file)) |
| 29 | }) |
| 30 | |
| 31 | return files |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Joins a list of files to a valid glob pattern |