Skip to content
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

Update local-executors.md #25202

Merged
merged 1 commit into from
Jun 4, 2024
Merged

Update local-executors.md #25202

merged 1 commit into from
Jun 4, 2024

Conversation

cdwheatley
Copy link
Contributor

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 error The 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 #

@cdwheatley cdwheatley requested a review from a team as a code owner May 22, 2024 21:28
@cdwheatley cdwheatley requested a review from jaysoo May 22, 2024 21:28
Copy link

vercel bot commented May 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Jun 4, 2024 8:00pm

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.
@AgentEnder AgentEnder merged commit 56a3af6 into nrwl:master Jun 4, 2024
6 checks passed
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants