You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of my favorite features of Nx is that I don't have to think about managing my package.json for publishable packages because Nx will ensure the generated package.json will have all the dependencies I used and none that I didn't use. This is no longer the case in v15 as it's using the strict versions from my package-lock file, and it's making managing dependencies across my projects very difficult. I understand the position of the team (below), but I'm wondering if we can be provided with the option to use the same version (range) from the root package.json.
Also, the new generated pacakge json may have adverse impacts for publishable npm packages as the range specified is important and needs to be included in the generated package json. This also impacts any publishable package using the @nrwl/js:tsc executor.
For publishable packages we suggest creating manual package.json instead of using generated one, because it gives you the freedom to specify ranges as you see fit. For example my library could support @angular/core: >= 10 < 15 but my root package.json would have probably something like @angular/core: ^14.2.0. Using root package json ranges for publishable libs is bad practice, as they tend to be more restrictive than needed.
One of my favorite features of Nx is that I don't have to think about managing my package.json for publishable packages because Nx will ensure the generated package.json will have all the dependencies I used and none that I didn't use. This is no longer the case in v15 as it's using the strict versions from my package-lock file, and it's making managing dependencies across my projects very difficult. I understand the position of the team (below), but I'm wondering if we can be provided with the option to use the same version (range) from the root package.json.
For publishable packages we suggest creating manual package.json instead of using generated one, because it gives you the freedom to specify ranges as you see fit. For example my library could support
@angular/core: >= 10 < 15
but my root package.json would have probably something like@angular/core: ^14.2.0
. Using root package json ranges for publishable libs is bad practice, as they tend to be more restrictive than needed.Originally posted by @meeroslav in #12675 (comment)
The text was updated successfully, but these errors were encountered: