You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: This appears to be a minor bug since the code paths that use this only appear to be for reporting?
When using a local workspace plugin where it ONLY has exports to infer targets (i.e. createNodesV2, it will not show up in nx report under Local workspace plugins:.
Expected Behavior
Plugins that are locally defined should show up accurately with correct capabilities.
GitHub Repo
No response
Steps to Reproduce
Create a plugin where the only export is export const createNodesV2
In particular, this means deleting executors.json if you generated it, along with any generator definitions in package.json
Current Behavior
NOTE: This appears to be a minor bug since the code paths that use this only appear to be for reporting?
When using a local workspace plugin where it ONLY has exports to infer targets (i.e.
createNodesV2
, it will not show up innx report
underLocal workspace plugins:
.Expected Behavior
Plugins that are locally defined should show up accurately with correct capabilities.
GitHub Repo
No response
Steps to Reproduce
export const createNodesV2
executors.json
if you generated it, along with any generator definitions inpackage.json
nx.json
nx report
and see that it's not includedNx Report
Failure Logs
Package Manager Version
9.11.0
Operating System
Additional Information
This occurs because of faulty code in
getPluginCapabilities
(https://github.com/nrwl/nx/blob/master/packages/nx/src/utils/plugins/plugin-capabilities.ts#L51).It will only try to get the modules if executor or generators are present. Since it skips this, it returns simply the name, despite needing the entire module to later on see if those inferred target function names are present
NOTE: this will work correctly if a generator or executor is present.
The text was updated successfully, but these errors were encountered: