export const fixDirnameVar = (contents: string, isSource?: boolean): string =>
  _fixDirnameVar({contents, isSource} as TResourceContext).contents