-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
this.addDevDependencies and this.addDependencies can improperly trigger conflict resolver #1299
Comments
@terenceodonoghue btw: one mistake I had was not awaiting these methods as they now return promises, which is why the conflict resolver was triggered. This is still a problem for running yo on existing filesystems, but for completely new projects properly awaiting their return values should avoid this issue. |
@ntucker that fixed it, thanks! I replaced:
with:
Off-topic, but it's now failing for another reason: |
Closing, since it's resolved. The private repo problem is unrelated and should be discussed in the other issue. |
@mshima "This is still a problem for running yo on existing filesystems, but for completely new projects properly awaiting their return values should avoid this issue." This conflict issue will appear if you have an existing package.json - which is often the case when you're using yo to add pieces to an existing project instead of just create a new one. (I assume this is the point of making yorc files) |
If you want to force package.json to be written, you can do something like #1239.
|
Why is there a merging policy if the expectation is to only write to existing files if it's completely forced? |
What are you spectating here? The default is to merge, which is the better default for composing.
|
Just because a comma is added when addDependencies runs it creates a conflict and prompts the user in addition to breaking the install process
The text was updated successfully, but these errors were encountered: