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(pkg), add a new API "modifyPackageJson" to the env #9530

Merged
merged 4 commits into from
Feb 6, 2025

Conversation

davidfirst
Copy link
Member

Until now, it was only possible to provide static props.
This PR provides the ability to modify the props per component dynamically before writing it to the filesystem.

@davidfirst davidfirst enabled auto-merge (squash) February 6, 2025 18:30
@davidfirst davidfirst merged commit 7097ddc into master Feb 6, 2025
10 checks passed
@davidfirst davidfirst deleted the modify-pkg-json-api branch February 6, 2025 20:56
davidfirst added a commit that referenced this pull request Feb 10, 2025
… to be loaded (#9544)

This is a regression caused by #9530.
That API needed the env to be loaded when writing the package.json. In
some cases, this is hard to achieve. For `bit new`, when the env is not
there, it threw an error:

> environment with ID: X configured on component Y was not found

This PR fixes it by not throwing an error in such case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants