-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid duplicate workspace names. #120
Conversation
IIRC I did this because otherwise ember-cli-update would run the blueprint with the wrong name. Although currently we have also other problems with ecu: #93. Which is quite bad, as with all the update here, we'd want a way to update our adodns easily, without the manual hassle...
Is the root package.json considered a workspace? |
in Also in pnpm, you can do this:
Which I'm going to be exploring with these efforts: #121
we probably need to do some series of fixes to ECU. |
I think the top-level doesn't need a name at all. The embroider monorepo doesn't have one and has been used under both yarn and pnpm. |
Testing with: npm: ✅
yarn@v1: ✅
yarn@v3: ✅: install works, probably fine.
yarn@v4: ✅: install works, probably fine.
pnpm@7 ✅
pnpm@8 ✅
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with this chance... if we are also agreeing to drop support for ember-cli-update. Which this change will manifest, unless ecu is updated to provide other means to work with v2 projects. Again, while there is currently #93 waiting for a fix, the current change here will make it much more difficult to bring back ecu support. And that is publicly advertised as a feature of this blueprint, so this is a significant change...
I think we need to fix ECU, tbh -- it's been without maintenance for quite some time. I understand that other people use ECU, and rely on it though. |
We discussed this in the meeting this week, we need ECU to work 👍 and we should probably not have modern yarn error 🤷 If we need this change then we need to make ECU work like this, but if we can do a smaller fix that fixes yarn and keeps ECU working then we might want to consider doing that in the mean time |
We discussed this today and we're happy to merge for now and we can make sure that ember-cli-update works as a separate effort 👍 |
Discovered while debugging: #118
If someone wants to use a newer yarn, they get this error:
More info here: #114
tl;dr:
yarn@v1
is the only yarn that allows workspaces to share a nameIt's a goofiness to have multiple workspaces with the same name anyway, and yarn isn't the only tool that will error in this situation. Since duplicating the name with the addon name provides no value, I think it makes sense to add a suffix to the root package.json#name