Skip to content

Added knip#1033

Merged
kaisalmen merged 2 commits intomainfrom
knip
Mar 9, 2026
Merged

Added knip#1033
kaisalmen merged 2 commits intomainfrom
knip

Conversation

@kaisalmen
Copy link
Collaborator

Added a knip workspace configuration. I wanted to test the tool and it found some mismatching package definitions and unused exports. The larger the code base the more helpful this tool can be it seems.

I resolved most of the issues found and added ignores or non-issue/false-positives where applicable.

I need to add the entries for the package sub-exports.

@kaisalmen kaisalmen requested a review from CGNonofr as a code owner March 9, 2026 09:58
"exports": {
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh so that's the solution 🤔 I'm even more lost in those exports definitions...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, default is just a safeguard, that always works. import should be sufficient in an esm only context.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Order is relevant, btw.

Copy link
Collaborator

@CGNonofr CGNonofr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kaisalmen kaisalmen merged commit 51f0787 into main Mar 9, 2026
1 check passed
@kaisalmen kaisalmen deleted the knip branch March 9, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants