connect-deps icon indicating copy to clipboard operation
connect-deps copied to clipboard

Not working when using connect-deps with a child package in a lerna monorepo that uses another child package as a dep

Open pcowgill opened this issue 4 years ago • 2 comments

Question about using connect-deps for a child package in a repo that uses lerna:

lerna bootstrap leads to symlinking of all the packages in the monorepo

From lerna docs:

When run, this command will:
    npm install all external dependencies of each package.
    Symlink together all Lerna packages that are dependencies of each other.

But then what happens if you use connect-deps to make a tarball of one of those packages in the monorepo? If that package depends on another package in the monorepo, will it find the symlinked version to package?

pcowgill avatar Mar 11 '20 22:03 pcowgill

@hugomrdias Zero rush, but I'm very curious about this whenever you get a chance. Thanks!

pcowgill avatar Mar 18 '20 22:03 pcowgill

In particular, I'm trying to use connect-deps to use a local version of ipfs-http-client from within the js-ipfs monorepo in a React web app, and I want to make sure the React app picks up the local version of ipfs-utils in node_modules as well as a result of using ipfs-http-client as a dependency. So far it doesn't appear to be using the local version.

pcowgill avatar Mar 18 '20 22:03 pcowgill