* Filters file contents transformations to only these that match path patterns. * `filePath` param should be a relative path.
(transforms: FileTransform[], filePath: string)
| 65 | * `filePath` param should be a relative path. |
| 66 | */ |
| 67 | function getFilteredContentTransforms(transforms: FileTransform[], filePath: string) { |
| 68 | return transforms.filter( |
| 69 | ({ paths }) => |
| 70 | !paths || arrayize(paths).some((pattern) => minimatch(filePath, pattern, { matchBase: true })) |
| 71 | ); |
| 72 | } |
| 73 | |
| 74 | async function maybePrintDebugInfoAsync( |
| 75 | contentBefore: string, |
no test coverage detected
searching dependent graphs…