-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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(core): create multi-glob function #29880
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
View your CI Pipeline Execution ↗ for commit 95ff39b.
☁️ Nx Cloud last updated this comment at |
0c6c222
to
0a0be97
Compare
Have we checked if there is a noticeable perf difference when running ~10 plugins? |
eac7070
to
f9eb5a1
Compare
} else { | ||
// if there is no glob in the plugin, add an empty glob so that we can still map the globs by index to the plugin | ||
globPatterns.push(''); |
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.
before going into here, we should filter out the plugins that do not have createNodes already. Since they are not going to be used for creating the project grap
This ensures consistent indexing between glob patterns and plugins. It prevents potential errors when mapping plugins to their respective globs.
- Add missing semicolon in `retrieve-workspace-files.ts`. - Correct indentation in `retrieve-workspace-files.spec.ts` for readability.
f9eb5a1
to
6cc2644
Compare
@@ -1678,6 +1678,16 @@ describe('project-configuration-utils', () => { | |||
], | |||
}; | |||
|
|||
const noProjectsPlugin: NxPluginV2 = { |
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.
This isn't used
Thank you @FrozenPandaz @Cammisuli and @AgentEnder 🙌🏻 🙇🏻 |
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> Whenever there are multiple plugins using in a workspace, all the configuration paths are collected and used as 1 giant glob to test against the workspace context files. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Each plugin configuration glob is now handled separately and are not joined together into one giant one. This allows each glob pattern to have separate files for each plugin. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #29473 --------- Co-authored-by: FrozenPandaz <jasonjean1993@gmail.com>
Current Behavior
Whenever there are multiple plugins using in a workspace, all the configuration paths are collected and used as 1 giant glob to test against the workspace context files.
Expected Behavior
Each plugin configuration glob is now handled separately and are not joined together into one giant one. This allows each glob pattern to have separate files for each plugin.
Related Issue(s)
Fixes #29473