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(devkit): allow updating package json based projects #27138

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

AgentEnder
Copy link
Member

Current Behavior

Calling updateProjectConfiguration on a package json based project fails

Expected Behavior

Calling updateProjectConfiguration on a package json based project works

Related Issue(s)

Fixes #26530

@AgentEnder AgentEnder requested a review from a team as a code owner July 25, 2024 22:37
@AgentEnder AgentEnder requested a review from xiongemi July 25, 2024 22:37
Copy link

vercel bot commented Jul 25, 2024

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

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Jul 26, 2024 3:48pm

@AgentEnder AgentEnder force-pushed the feat/package-json-generators branch from 18d8879 to 04cf256 Compare July 26, 2024 15:46

const packageJson = readJson<PackageJson>(tree, packageJsonFile);

if (packageJson.name === projectConfiguration.name ?? projectName) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

If the name is not equal, what do we do? Do we set it in package.json#name or do we set it in package.json#nx.name?

Copy link
Member Author

Choose a reason for hiding this comment

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

nx.name, setting package.json name could break a published package

@AgentEnder AgentEnder requested a review from FrozenPandaz July 26, 2024 18:34
@FrozenPandaz FrozenPandaz merged commit 3dbbfd7 into master Jul 26, 2024
6 checks passed
@FrozenPandaz FrozenPandaz deleted the feat/package-json-generators branch July 26, 2024 19:07
Copy link

github-actions bot commented Aug 1, 2024

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 Aug 1, 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.

getProjects is missing tags data for the root project
2 participants