How to include local dependencies in yarn application

If the package.json of a node package declares a local dependency like "foo" : "file:../foo", mkYarnPackage wont really find that dependency (or at least not its dependencies), even after setting it in workspaceDependencies and merging the yarn offline caches as for example seen in fix #54 by HannesGitH · Pull Request #66 · Martichou/rquickshare · GitHub or described in Package request: rquickshare · Issue #307840 · NixOS/nixpkgs · GitHub.

And I cannot find any documentation on how to add local dependencies to mkYarnPackage, any links or help would be greatly appreciated.

1 Like