Skip to content

Commit

Permalink
Exclude nsExports, classMembers and nsTypes from --exports sh…
Browse files Browse the repository at this point in the history
…ortcut (#698)
  • Loading branch information
webpro committed Jun 29, 2024
1 parent 62090b4 commit 2e83446
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion packages/knip/src/util/get-included-issue-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const getIncludedIssueTypes = (
incl = [...incl, 'dependencies', 'optionalPeerDependencies', 'unlisted', 'binaries', 'unresolved'];
}
if (cliArgs.exports) {
incl = [...incl, 'exports', 'nsExports', 'classMembers', 'types', 'nsTypes', 'enumMembers', 'duplicates'];
incl = [...incl, 'exports', 'types', 'enumMembers', 'duplicates'];
}
if (cliArgs.files) {
incl = [...incl, 'files'];
Expand Down
3 changes: 0 additions & 3 deletions packages/knip/test/util/get-included-issue-types.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,7 @@ test('Resolve included issue types (--exports)', async () => {
assert.deepEqual(config, {
...none,
exports: true,
nsExports: true,
classMembers: true,
types: true,
nsTypes: true,
enumMembers: true,
duplicates: true,
});
Expand Down

0 comments on commit 2e83446

Please sign in to comment.