Replies: 5 comments 3 replies
-
i have like 45 publishable libs, all of them with their own unique little dependencies, and its a real hassle to maintain dependencies both in their own pkg.json and the main pkg.json by hand. i'd love to hear the recommended way to handle this. |
Beta Was this translation helpful? Give feedback.
-
Hi ! same thoughts here. Appreciate some inputs on this. Thanks |
Beta Was this translation helpful? Give feedback.
-
Try adding your publishable library/package to the root "@workspace-name/lib-name": "file:packages/lib-name" That should pull the dependencies of that package into the root |
Beta Was this translation helpful? Give feedback.
-
I'm curious if |
Beta Was this translation helpful? Give feedback.
-
Came across this while looking for a solution for the same problem. What is the recommended way to organizate the dependencies in local packages vs the global package.json |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys,
I'm using NX for a while, but now I encountered a problem that I've never handled before.
The question is: I have a publishable library which is a CLI application, in my workspace, and this library requires some external dependencies to be installed in order to work correctly.
So in order to publish the library with the correct dependency, I manually copied the required dependencies from the
global package.json
in my workspace, and I put those into thespecific package.json
of my library.I'm struggling to understand if this is the correct way to handle this issue, or if there is a better one. Because, it works, but in case i would update a package version into my global
package.json
i need to manually repeat this replacing process also into the librarypackage.json
.Thank you so much.
Renny
Beta Was this translation helpful? Give feedback.
All reactions