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 +3 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
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 (
|
|
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
|
-
|
|
491
|
-
|
|
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.
|
|
1
|
+
export declare const version = "4.0.1";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.0.
|
|
1
|
+
export const version = '4.0.1';
|