Repository navigation
Conversation
|
How do the relative dependencies work when publishing that module? |
|
We only do it on private modules, so they don't get published. |
|
Should probably actually be an error to do it on a public module... |
|
I tried to add support for this in #10 but it was closed (also is outdated now). This may also work for my use case but it would need to support the other ways to declare relative dependencies: It may be worthwhile to use the same logic npm uses internally to determine if this is a local dependency or not (https://github.com/npm/npm-package-arg). |
Oh yeah, good point. Thanks for the link to I've actually realized since opening this that local dependencies are a little trickier than I originally thought. Specifically, running For example with deps that look like: If Not sure what to do about that case. |
|
I think the first step is something like you have done, which is to make sure the local file based packages can be bootstrapped at all. I haven't looked into it since #10, but back then private / local packages were excluded from Then likely the bootstrap process needs to be modified to detect that |
They're
Right, but when is it linked? It can't happen before |
At the root level this is how I am doing it at the moment:
If each package is installed separately then all the other non-local dependencies, then in theory by the time the dependency packages are installed you already have the right local one. I am also using |
|
@gigabo Can we close this PR now? |
|
Yes! |
|
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
We use relative dependencies in private packages as a crude workaround for #11.
This generates warnings during bootstrap, and prevents us from receiving the full benefit of #199.
This patch causes bootstrap to treat relative dependencies as satisfactory.