- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🚀 Feature: Allow overriding Knip entry #2147
Comments
## PR Checklist - [x] Addresses an existing open issue: fixes #2147 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Goes a bit beyond #2147's original intended scope of `entry` by also making `project` an Addon. This way, `blockTypeScript` and `blockVitest` fully communicate all file globs to `blockKnip`. Also expands `blockKnip`'s `intake` to read both of those new Addon properties. This will allow customizations such as https://github.com/JoshuaKGoldberg/refined-saved-replies's `entry: ["src/content-script.ts"]` to be inferred. 🎁
🎉 This is included in version v2.29.0 🎉 The release is available on: Cheers! 📦🚀 |
Wanted to let you know that Knip understands for quite a few of executables like
While this totally lacks documentation/discovery and might seem a bit of a random list of executables, just wanted to chime in and say what's currently available i.e. for aforementioned executables the |
Feature Request Checklist
main
branch of the repository.Overview
Repos may need to customize their
knip.json
on top of whatblockKnip
currently allows. For example, https://github.com/JoshuaKGoldberg/refined-saved-replies switches itsentry
tosrc/content-script.ts
rather thanindex.ts
.I'll make
entry
an Addon.Additional Info
🎁
The text was updated successfully, but these errors were encountered: