-
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): avoid launching default plugins twice #29539
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
View your CI Pipeline Execution ↗ for commit a5b786e.
☁️ Nx Cloud last updated this comment at |
1ac8357
to
e216afc
Compare
1bde73f
to
3d23c4c
Compare
3d23c4c
to
824fc92
Compare
async function normalizePlugins(plugins: PluginConfiguration[], root: string) { | ||
plugins ??= []; | ||
|
||
return [ | ||
...plugins, | ||
// Most of the nx core node plugins go on the end, s.t. it overwrites any other plugins | ||
...(await getDefaultPlugins(root)), | ||
]; | ||
return [...plugins]; |
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.
I believe we don't have to normalize plugins at all anymore?
* Use `getPlugins` instead. | ||
* @deprecated Do not use this. Use `getPlugins` instead. | ||
*/ | ||
export async function loadNxPlugins( |
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 is now only used in 2 tests. Can we get rid of this function?
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
Default plugins are launched twice when loading plugins in a workspace that has local plugins:
Expected Behavior
Default plugins are launched once and reused
Related Issue(s)
Fixes #