code: function makeFilePathRelativeToCwd (file) {
    const cwd = process.cwd();
    return (file.startsWith(cwd)) ? '.' + file.substring(cwd.length) : file;
  }
docs: Helper function to trim absolute file path by removing the `process.cwd()`
  prefix if file is nested under `process.cwd()`.