* Check if the filename should be ignored.
(ignoreBaseDir: string, ignore: RegExp[])
| 1545 | * Check if the filename should be ignored. |
| 1546 | */ |
| 1547 | function createIgnore(ignoreBaseDir: string, ignore: RegExp[]) { |
| 1548 | return (fileName: string) => { |
| 1549 | const relname = relative(ignoreBaseDir, fileName); |
| 1550 | const path = normalizeSlashes(relname); |
| 1551 | |
| 1552 | return ignore.some((x) => x.test(path)); |
| 1553 | }; |
| 1554 | } |
| 1555 | |
| 1556 | /** |
| 1557 | * Register the extensions to support when importing files. |
no test coverage detected
searching dependent graphs…