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

feat(core): hide hidden and deprecated generators from prompts #14561

Merged
merged 2 commits into from
Jan 27, 2023

Conversation

AgentEnder
Copy link
Member

Current Behavior

Plugin authors have no way to mark existing generators as deprecated, and provide information to help folks transition to newer means.

Expected Behavior

image

image

Related Issue(s)

Fixes #

@vercel
Copy link

vercel bot commented Jan 23, 2023

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

Name Status Preview Comments Updated
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 26, 2023 at 10:20PM (UTC)

packages/workspace/generators.json Outdated Show resolved Hide resolved
packages/workspace/generators.json Outdated Show resolved Hide resolved
packages/workspace/generators.json Outdated Show resolved Hide resolved
packages/workspace/generators.json Outdated Show resolved Hide resolved
packages/nx/src/config/misc-interfaces.ts Show resolved Hide resolved
packages/nx/src/config/workspaces.ts Outdated Show resolved Hide resolved
@@ -145,6 +169,13 @@ async function promptForCollection(
return customCollection
? `${customCollection}:${generatorName}`
: generator;
} else if (deprecatedChoices.size > 0) {
throw new Error(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do this:

  1. Warn them there are no non-deprecated
  2. Let them choose which deprecated one they want
  3. Run it

@FrozenPandaz FrozenPandaz merged commit f4a4059 into nrwl:master Jan 27, 2023
@github-actions
Copy link

github-actions bot commented Mar 4, 2023

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 Mar 4, 2023
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