I’m looking for some advice on refactoring our design system. Currently we have all our library styles in one file, all our library components in another file, and all our individual team files.
I want to refactor the styles into separate library files. To do this I can simply duplicate the current style library, remove the elements I don’t need, publish, and use swap library to achieve the migration.
My question is: Do I do the swap library migration in the components file first and update the ordinary files and then swap the remaining style layers? Or does it matter
Here’s a diagram of what I’m trying to achieve and what I’m looking for is the order of operations eg:
- Swap Library in Component Library
- Publish components
- Update instances in non-library files
- Swap library in non-library files