Added path aliases to the /next and /docs apps inside the monorepo to target the /ui package. This improves the maintainability and readability of import statements by allowing the use of concise and consistent paths.
Component Relocation:
Moved all components from the /next app to the /ui package. This centralizes the UI components, making them easier to manage and reuse across different parts of the monorepo.
Import Updates:
Updated all import statements within the /next and /docs apps to reflect the new locations of the components in the /ui package. This ensures that the apps continue to function correctly with the relocated components.
Benefits
Improved Code Organization:
Centralizing UI components in the /ui package to ehance modularity and organization of the codebase.
Simplified Imports:
Using path aliases simplifies import statements, making the code more readable and easier to maintain. We get rid of complex relative paths this way.
Testing
bun run build returns no errors, successfully building.
Feat: Add Components to UI Package
Changes
Path Aliases:
/next
and/docs
apps inside the monorepo to target the/ui
package. This improves the maintainability and readability of import statements by allowing the use of concise and consistent paths.Component Relocation:
/next
app to the/ui
package. This centralizes the UI components, making them easier to manage and reuse across different parts of the monorepo.Import Updates:
/next
and/docs
apps to reflect the new locations of the components in the/ui
package. This ensures that the apps continue to function correctly with the relocated components.Benefits
Improved Code Organization:
/ui
package to ehance modularity and organization of the codebase.Simplified Imports:
Testing
bun run build
returns no errors, successfully building.