We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c4a75c commit 0fef0c3Copy full SHA for 0fef0c3
packages/core/src/lib/collect-and-persist.ts
@@ -1,11 +1,16 @@
1
-import { pluginReportSchema } from '@code-pushup/models';
+import { Report, pluginReportSchema } from '@code-pushup/models';
2
+import { name, version } from '../../package.json';
3
import { CollectOptions, collect } from './commands/collect';
4
import { logPersistedResults, persistReport } from './implementation/persist';
5
6
export async function collectAndPersistReports(
7
config: CollectOptions,
8
): Promise<void> {
- const report = await collect(config);
9
+ const report: Report = {
10
+ packageName: name,
11
+ version,
12
+ ...(await collect(config)),
13
+ };
14
15
const persistResults = await persistReport(report, config);
16
logPersistedResults(persistResults);
0 commit comments