Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change path for generation of my-plugin to libs/my-plugin
nx g @nx/plugin:plugin libs/my-plugin
This makes it work with the plugin executor generate command.
Current Behavior
When generating a new plugin for the first time with the command
nx g @nx/plugin:plugin my-plugin
it generates the plugin my-plugin in the root of the project.When executing
nx generate @nx/plugin:executor echo --directory=libs/my-plugin/src/executors/echo
it gets an errorThe provided directory resolved relative to the current working directory "libs/my-plugin/src/executors/echo" does not exist under any project root. Please make sure to navigate to a location or provide a directory that exists under a project root.
Expected Behavior
When executing the commands in the root of a new Nx project with no plugin, it will generate a new plugin called "my-plugin" in relative directory of
libs/my-plugin
and then the generation of the executor will work with the existing documentation.Related Issue(s)
Fixes #