knip 5.82.0 → 5.82.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.
@@ -419,16 +419,16 @@ const getImportsAndExports = (sourceFile, resolveModule, typeChecker, options, i
419
419
  }
420
420
  }
421
421
  }
422
- if (!isTopLevel && symbol.exportSymbol) {
423
- const containingExport = isReferencedInExport(node);
424
- if (containingExport) {
425
- const referencedId = String(symbol.exportSymbol.escapedName);
426
- const refs = referencedInExport.get(referencedId);
427
- if (refs)
428
- refs.add(containingExport);
429
- else
430
- referencedInExport.set(referencedId, new Set([containingExport]));
431
- }
422
+ }
423
+ if (ts.isTypeReferenceNode(node.parent) || ts.isTypeQueryNode(node.parent)) {
424
+ const containingExport = isReferencedInExport(node);
425
+ if (containingExport && containingExport !== id) {
426
+ const refId = symbol?.exportSymbol ? String(symbol.exportSymbol.escapedName) : id;
427
+ const refs = referencedInExport.get(refId);
428
+ if (refs)
429
+ refs.add(containingExport);
430
+ else
431
+ referencedInExport.set(refId, new Set([containingExport]));
432
432
  }
433
433
  }
434
434
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "5.82.0";
1
+ export declare const version = "5.82.1";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '5.82.0';
1
+ export const version = '5.82.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "5.82.0",
3
+ "version": "5.82.1",
4
4
  "description": "Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects",
5
5
  "homepage": "https://knip.dev",
6
6
  "repository": {