feat: choose workspace config(s) for initializing dmno service#229
feat: choose workspace config(s) for initializing dmno service#229MrChrisRodriguez wants to merge 2 commits intodmno-dev:mainfrom
Conversation
Handle both legacy format (workspaces as array) and modern (workspaces as object with packages property) formats
When there are multiple workspace configs found, choose which one(s) to use for automatically creating configurations.
|
First off, thanks so much for taking the time to create this and the other PRs 🥳 Obviously this is an edge case, and not something I have exactly encountered in my projects so far, so your input here is super helpful. At first glance, this is great, and it definitely makes sense during the init flow to prompt the user about this. My only concern is that, if I'm reading it correctly, it could add an interactive prompt to the loading process in general, which is triggered whenever we are trying to resolve the config. This could be triggered over and over again in some dev workflows, or add an extra manual step to some commands. Please let me know if this is not the case! My general strategy so far has been to try to just do the right thing automatically, and when there is some ambiguity that could be removed by the user, throw an error with some helpful info. For this case where it's not clear which globs to use for child projects, we do provide a Happy to discuss further! |
When there are multiple workspace configs found (e.g., bun and Moon):
Note: this is a fork of another PR which supports modern workspace configs
Selection
Post Selection