Replies: 1 comment
-
|
npm already covers most of this use case with workspaces, which rely on a root |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This might be a continuation on the topic of npm/npm#2974, where the main stance was to not support monorepos as the focus was to not add more features/complexity at that time. With the introduction of workspaces, I have the feeling this stance has slightly changed.
For unpublished packages, we already have the options to install them through a remote URL:
npm install <git remote url>. However, this method does not work when the repository is a monorepo where no root-projectpackage.jsonexists, currently resulting in the following error:To extend the work of workspaces, it would be great if we could integrate workspace in the URL protocol, using the top-level workspace
package.jsonto resolve the workspace name. Seeing it has been discussed before, I do wonder what the current opinions are about this and if this is something that does fit with NPM's philosophy nowadays.As a reference, Yarn currently supports this through a URL fragment value of
workspace=<name>Beta Was this translation helpful? Give feedback.
All reactions