Type Alias PathPatternMatchingFn

PathPatternMatchingFn: ((file_path: string) => boolean | string)

a function, used by TransformationConfig, for testing if a certain file by the given file_path name should be transformed or not.

  • if the function returns a false, then the file shall not be transformed.
  • if the function returns a true, then the file will be transformed, and its name will remain the same as before (unchanged).
  • if the function returns a string, then the file will be transformed, and it will be renamed to the output string of the function.