knip 2.34.0 → 2.34.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -34,6 +34,7 @@ const run = async () => {
34
34
  const initialData = {
35
35
  report,
36
36
  issues,
37
+ counters,
37
38
  configurationHints,
38
39
  noConfigHints,
39
40
  cwd,
@@ -45,8 +46,8 @@ const run = async () => {
45
46
  const finalData = await runPreprocessors(initialData);
46
47
  await runReporters(finalData);
47
48
  const totalErrorCount = Object.keys(finalData.report)
48
- .filter(reportGroup => report[reportGroup] && rules[reportGroup] === 'error')
49
- .reduce((errorCount, reportGroup) => errorCount + counters[reportGroup], 0);
49
+ .filter(reportGroup => finalData.report[reportGroup] && rules[reportGroup] === 'error')
50
+ .reduce((errorCount, reportGroup) => errorCount + finalData.counters[reportGroup], 0);
50
51
  if (isObservePerf) {
51
52
  await perfObserver.finalize();
52
53
  console.log('\n' + perfObserver.getTable());
@@ -43,6 +43,7 @@ export type Counters = Record<IssueType | 'processed' | 'total', number>;
43
43
  export type ReporterOptions = {
44
44
  report: Report;
45
45
  issues: Issues;
46
+ counters: Counters;
46
47
  configurationHints: ConfigurationHints;
47
48
  noConfigHints: boolean;
48
49
  cwd: string;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "2.34.0";
1
+ export declare const version = "2.34.1";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '2.34.0';
1
+ export const version = '2.34.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "2.34.0",
3
+ "version": "2.34.1",
4
4
  "description": "Find unused files, dependencies and exports in your TypeScript and JavaScript projects",
5
5
  "homepage": "https://github.com/webpro/knip",
6
6
  "repository": "github:webpro/knip",