MCPcopy Create free account
hub / github.com/code-pushup/cli / createReportPath

Function createReportPath

packages/utils/src/lib/file-system.ts:53–66  ·  view source on GitHub ↗
({
  outputDir,
  filename,
  format,
  suffix,
}: Pick<Required<PersistConfig>, 'filename' | 'outputDir'> & {
  format: Format;
  suffix?: string;
})

Source from the content-addressed store, hash-verified

51}
52
53export function createReportPath({
54 outputDir,
55 filename,
56 format,
57 suffix,
58}: Pick<Required<PersistConfig>, 'filename' | 'outputDir'> & {
59 format: Format;
60 suffix?: string;
61}): string {
62 return path.join(
63 outputDir,
64 suffix ? `${filename}-${suffix}.${format}` : `${filename}.${format}`,
65 );
66}
67
68export function pluginWorkDir(slug: string): string {
69 return path.join('node_modules', '.code-pushup', slug);

Callers 6

defaultInputPathFunction · 0.90
compareReportFilesFunction · 0.90
persistReportFunction · 0.90
persistedFilesFromConfigFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected