knip 4.0.0 → 4.0.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/index.js CHANGED
@@ -403,9 +403,8 @@ export const main = async (unresolvedConfiguration) => {
403
403
  continue;
404
404
  if (exportedItem.jsDocTags.includes('@alias'))
405
405
  continue;
406
- if (exportedItem.type !== 'enum' && exportedItem.type !== 'class' && shouldIgnore(exportedItem, tags)) {
406
+ if (shouldIgnore(exportedItem, tags))
407
407
  continue;
408
- }
409
408
  if (isProduction && exportedItem.jsDocTags.includes('@internal'))
410
409
  continue;
411
410
  if (importsForExport) {
@@ -487,9 +486,8 @@ export const main = async (unresolvedConfiguration) => {
487
486
  const workspace = chief.findWorkspaceByFilePath(filePath);
488
487
  const principal = workspace && factory.getPrincipalByPackageName(workspace.pkgName);
489
488
  if (principal) {
490
- principal.findUnusedMembers(filePath, exportedItem.members).forEach(member => {
491
- if (shouldIgnore(member, tags))
492
- return;
489
+ const members = exportedItem.members.filter(member => !shouldIgnore(member, tags));
490
+ principal.findUnusedMembers(filePath, members).forEach(member => {
493
491
  collector.addIssue({
494
492
  type: 'classMembers',
495
493
  filePath,
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "4.0.0";
1
+ export declare const version = "4.0.1";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '4.0.0';
1
+ export const version = '4.0.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Find unused files, dependencies and exports in your TypeScript and JavaScript projects",
5
5
  "homepage": "https://knip.dev",
6
6
  "repository": {