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): remove deprecated defaultCollection and npmScope nx.json … #19708

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

FrozenPandaz
Copy link
Collaborator

… properties

Current Behavior

defaultCollection and npmScope configuration in nx.json has been deprecated for over a year.

Expected Behavior

defaultCollection and npmScope configuration in nx.json have been removed.

defaultCollection is no longer necessary because Nx will prompt when there are multiple collections with the same generator.

npmScope is no longer necessary because it is now read from the root package.json.

Related Issue(s)

Fixes #

@vercel
Copy link

vercel bot commented Oct 18, 2023

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

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Oct 18, 2023 9:03pm

Comment on lines +18 to +26
delete nxJson['npmScope'];

updateNxJson(tree, nxJson);

This comment was marked as resolved.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Huh...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think we should just warn. I'll add that

@FrozenPandaz FrozenPandaz merged commit d0005c9 into nrwl:master Oct 18, 2023
4 of 6 checks passed
@github-actions
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 Oct 24, 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