knip
knip copied to clipboard
✂️ Find unused files, dependencies and exports in your JavaScript and TypeScript projects. Knip it before you ship it!
fix #603
Adds support for Webpack config files that specify entries with an absolute path.
On the [documentation site](https://knip.dev/v5), selecting "V3" or "V4" from the dropdown in the header takes you to a 404 page.
### Reproduction url [Sandbox](https://codesandbox.io/p/devbox/t3l78m?migrateFrom=c7ntv3&layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clyy65onq0006356jqva99u87%2522%252C%2522sizes%2522%253A%255B70%252C30%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clyy65onq0002356j39ygwee6%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clyy65onq0004356jmhct5v4q%2522%257D%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clyy65onq0005356jmz4mwbv3%2522%257D%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clyy65onq0002356j39ygwee6%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clyy65onq0001356jh7uf6v0f%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252Fpackage.json%2522%257D%255D%252C%2522id%2522%253A%2522clyy65onq0002356j39ygwee6%2522%252C%2522activeTabId%2522%253A%2522clyy65onq0001356jh7uf6v0f%2522%257D%252C%2522clyy65onq0005356jmz4mwbv3%2522%253A%257B%2522id%2522%253A%2522clyy65onq0005356jmz4mwbv3%2522%252C%2522activeTabId%2522%253A%2522clyy65s3v000d356j6v392pmw%2522%252C%2522tabs%2522%253A%255B%257B%2522type%2522%253A%2522SETUP_TASKS%2522%252C%2522id%2522%253A%2522clyy65s3v000d356j6v392pmw%2522%252C%2522mode%2522%253A%2522permanent%2522%257D%255D%257D%252C%2522clyy65onq0004356jmhct5v4q%2522%253A%257B%2522id%2522%253A%2522clyy65onq0004356jmhct5v4q%2522%252C%2522activeTabId%2522%253A%2522clyy65onq0003356jap54cqff%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clyy65onq0003356jap54cqff%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522NEW_TERMINAL%2522%257D%252C%257B%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522Development%2522%252C%2522id%2522%253A%2522clyy660z8000z356j4813zaq5%2522%252C%2522mode%2522%253A%2522permanent%2522%257D%255D%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D) ### Description of the issue In a monorepo setting, a workspace script invoking a top-level script which takes positional parameters gets these parameters incorrectly interpreted as...
closes https://github.com/webpro-nl/knip/issues/724
### Reproduction url https://stackblitz.com/edit/github-e9sos1?file=packages%2Fclient%2Fpackage.json ### Description of the issue When the binary of a dev dependency of a package in a monorepo is used in a GitHub actions workflow (using...
Currently, Kip reports a count per grouping (e.g. Duplicate exports) but does not give a total issue count at the end, but uses that total count against --max-issues to decide...
Is there a reason not to? With the "last publish is at least 6 years ago" rule respected, of course. Full list available on Wikipedia [here](https://en.wikipedia.org/wiki/List_of_GNU_Core_Utilities_commands). Requesting because I'm looking...