workspaces phase 1: aggregated install#60
workspaces phase 1: aggregated install#60cpojer merged 2 commits intoyarnpkg:masterfrom bestander:workspaces-install
Conversation
|
This is lovely! I'm 100 % supportive of this plan. Can we call it |
|
How about we disable this feature behind and |
|
So for every workspace feature I'd have to type out |
|
In .yarnrc: |
|
Sounds good. |
|
This isn't really how RFCs are supposed to work... there's a lot of missing details here that should be added |
|
I am open to suggestions here, @thejameskyle. |
|
I added a lot more detail to my original RFC here: https://gist.github.com/thejameskyle/1e0f781de728ec1f2597a0bdbe071675 |
|
Looking at workspaces (or: multi-project builds, or: multi-modules) from a Gradle (or: maven) perspective, there's that In a multi-project yarn set-up, we do this by writing a package.json {
"name": "parent",
"private": true,
"dependencies": {
"a": "1.0.0",
"b": "^2.4.7"
}
}packages/common/package.json: {
"name": "common",
"dependencies": {
"a": "x.y.z"
}
}packages/utils/package.json: {
"name": "core",
"dependencies": {
"a": "x.y.z",
"b": "x.y.z"
}
}I think it could be super-helpful to add a |
|
@dherges that would risk a nonstandard version string being published out to the ecosystem. The inner package package.jsons need to be coded as if the parent workspace doesn't exist, since when published, it won't. |
|
@ljharb yes, you're right. it would require to build an effective |
|
@dherges which is a very error-prone approach, considering anyone might run |
|
@ljharb partially, yes. we work around this by managing |
No description provided.