-
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
feat(repo): remove projectNameAndRoot nx.json option #19218
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 8ef6472. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 5 targets
Sent with 💌 from NxCloud. |
0aad937
to
58c1656
Compare
fc51535
to
9b6727d
Compare
9b6727d
to
90e6270
Compare
90e6270
to
8147b68
Compare
const example = getExample(callingGenerator, formats); | ||
logger.warn(deprecationWarning + '\n' + example); |
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 should only be shown when result === 'derived'
, isn't it?
delete nxJson?.workspaceLayout?.projectNameAndRootFormat; | ||
|
||
if (Object.keys(nxJson?.workspaceLayout).length === 0) { |
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.
nit: we already checked nxJson.workspaceLayout
is defined in line 11.
delete nxJson?.workspaceLayout?.projectNameAndRootFormat; | |
if (Object.keys(nxJson?.workspaceLayout).length === 0) { | |
delete nxJson.workspaceLayout.projectNameAndRootFormat; | |
if (Object.keys(nxJson.workspaceLayout).length === 0) { |
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.
Seems good to me. Feel free to address Leo's nit first.
003aeab
to
faa98bf
Compare
faa98bf
to
b3c507a
Compare
b3c507a
to
8ef6472
Compare
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
When creating a new workspace, the behavior when generating projects changed to the new
as-provided
project name and root format.There's a configuration option which disables the prompt.
Expected Behavior
When creating a new workspace, there are prompts just like for existing workspaces for the name and root of new projects.
There is no configuration to disable the prompt.
Related Issue(s)
Fixes #