[Bug]: Wrong dependencies added by the library generator #2666
Labels
bug
Something isn't working
generators
Issue is linked to Otter generators
priority:low
project:@o3r/workspace
Milestone
Package name
core
Package version
11.5.3
Reproduction steps
Create a project with @o3r/create, then generate an app and a lib:
Current result
The 2 following dependencies were added by the app generator in
dependencies
section of the rootpackage.json
file, but then were also added by the lib generator indevDependencies
section. As a result, they are now duplicated, which is not ideal because it could lead to further issues (e.g. version mismatch?):Also, the following
peerDependencies
is added in the rootpackage.json
file, which is probably a mistake (not sure why a rootpackage.json
file would need a peerDeps section):Expected result
The lib generator should not add these 2 dependencies if they are already present.
It should also not create a
peerDependencies
section in the rootpackage.json
file.Additional comments
No response
The text was updated successfully, but these errors were encountered: