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
fix(linter): use import to check for secondary entrypoint in angular #9285
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/nrwl/nx-dev/D3sqkUUt93CdYEtPcb54ViqNeMdq [Deployment for 4bad20f canceled] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
9f08ae1
to
4bad20f
Compare
@meeroslav Am I correct in my assumption that this fix will not work for wildcard paths used for secondary entry points? |
I would expect it to work @codephobia. Do you have a repro that shows otherwise? |
@meeroslav The problem I am seeing is if I try to use a wildcard path for any nested folder within the lib I get the relative path error for the secondary entry point. I've got about 50 entry points for components, some of which are using other components as children. I would prefer to avoid putting them in the root folder of the library since there is other things in the library currently (storybook, schematics, docs, etc) and it makes it look like a mess. Example path: Error: I can try to make some time today to repro the issue if that helps. |
@meeroslav I made a repro of the issue and it seems to work as expected. Must be something in the current setup I have, or the fact that we are still on Nx 13.10.5. At least I know that it should work now, just need to figure out what is needed to get there. Repro: https://stackblitz.com/edit/nx-sgjrmx |
@meeroslav Upon further investigation, I have a feeling that the folder (libs/my-library/some-folder) is not being linted as expected. It seems that if you include the folder in the lintFilePatterns you then start to see the errors I am experiencing in my project. I have updated the repro accordingly. If you go to https://stackblitz.com/edit/nx-sgjrmx and run the command |
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
Expected Behavior
Related Issue(s)
Fixes #8059
Related to nrwl/nx-examples#179