Need help with refactoring a nested monolith structure using `packwerk` or other methods

Message originally sent by slack user U71810IPUMS

Is that more or less correct?

Message originally sent by slack user U717GMJTWHJ

You’ll want namespaces so you end up with ComplexDoer::ProductTypeA::ComplexDoer , but the structure looks good.

Message originally sent by slack user U71810IPUMS

Perfect. I figure there would be some housekeeping to make it perfect, but I didn’t know if it looked right in terms of number and placement of the package.yml

Message originally sent by slack user U717GMJTWHJ

That all looks good to me.

Message originally sent by slack user U71810IPUMS

Thank you Kevin and Alex

Message originally sent by slack user U70TIGAX94P

It might make sense to prioritize dependencies over privacy in the beginning, to shake out the design before making it harder to change. I have a (hopefully useful) section in my blog post about that. https://shopify.engineering/shopify-monolith