-
Is it possible to have a production dependency between two xPacks? Like for example having a
Which makes me think that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
This is a bit tricky, I still have some question marks on the details, therefore it is not yet fully implemented. The initial use case for xPacks was for source code libraries. In my understanding, production dependencies (i.e. listed in Then binary packages were added, and were assimilated as development dependencies. So doing an However this logic might not work as expected, and require further refining.
Except possible bugs, this means that one package requested a version and another one a different version. Depending on how the semver expressions were written, this means either an impossibility, or the need to search for a more recent version that satisfies both requests, which is an algorithm that may get very tricky. I am a bit confused by your list of dependencies, that apparently mixes npm and xpm packages. I don't even know how you did this. Personally I would definitely not do it. |
Beta Was this translation helpful? Give feedback.
This is a bit tricky, I still have some question marks on the details, therefore it is not yet fully implemented.
The initial use case for xPacks was for source code libraries. In my understanding, production dependencies (i.e. listed in
dependencies
) for libraries are other libraries required to compile the library, while development dependencies are tools used during the build process.Then binary packages were added, and were assimilated as development dependencies.
So doing an
xpm install <library>
in a project would install the library with all dependencies and add the library todependencies
; anxpm install <binary>
…