-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Pass ignoredWorkspacePatterns to mapWorkspaces ignore param (resolves… #374
Conversation
Someone is attempting to deploy a commit to a Personal Account owned by @webpro on Vercel. @webpro first needs to authorize it. |
Thanks, @arnoud-dv. Sorry you have to go through all this :) I'm not against this PR per se, but that error message is not coming from Knip. That would be "Duplicate package name" (https://github.com/webpro/knip/blob/main/packages/knip/src/ConfigurationChief.ts#L323) So I'm a bit surprised how modifying Knip's behavior would get you past that error? (Apparently there's also something else saying it's not great to have duplicate workspace names...) |
Hi, did you see the issue I added for this? I describe it more in depth there. |
Yes, that's why I said the "must not have multiple workspaces with the same name" error message is not from Knip. |
This change seems to break the feature that shows configuration hints for |
Do you think that's fixable? This might be a blocker to get the Angular adapter merged to Tanstack Query. I cannot do much about how Angular packages are built. |
Hmm.. tbh I don't really see a way, other than re-implementing what (And I want Knip to throw for duplicate package names, because not having that leads to hard to debug issues, just recently ran into this from another angle: #339) Kinda out of ideas, sorry 🤷♂️ |
While looking at the Knip code and considering that it shouldn't break the configuration hints I couldn't think of a solution either. I think I solved it for my PR though: the packages:
- 'packages/**' Changing these to single ones fixes the problem and I think is actually an improvement because no real packages are nested inside other directories. Knip's pretty cool btw! 😊 |
You can use negations there too, btw:
Thank you! |
Pass the ignoreWorkspaces patterns to the ignore param of mapWorkspaces to resolve #373
Note that I did test that this prevents the error from occurring but did not perform other testing to make sure nothing breaks.