This PR refactors the webapp and server packages in the monorepo to use the shared package as a centralized dependency source. This change reduces redundancy by consolidating common libraries and dependencies within the shared package, streamlining the monorepo setup.
Changes
Dependency Management
Removed duplicate dependencies: Uninstalled duplicate libraries from both webapp and server packages that are now provided by shared.
Cleaned up shared package dependencies: Uninstalled unused dependencies within the shared package to optimize package size and reduce bloat.
Code Refactoring
Updated imports: Refactored all webapp components to import dependencies from the shared package instead of local node_modules. This improves consistency across packages and ensures all common libraries are sourced from a single location.
Technical Improvements
Enhanced maintainability: Reduces potential version conflicts by centralizing dependency management within shared.
Simplified installation: Reduces installation time and complexity by removing duplicate dependencies in each package.
Testing & Verification
Verified the webapp and server components function correctly with dependencies imported from shared.
Ran the full test suite to confirm no breakages due to dependency changes.
Additional Notes
Ensure to update the shared package if additional dependencies are required by webapp or server in the future to maintain consistency.
Checklist
[x] Removed duplicate dependencies from webapp and server
[x] Uninstalled unused dependencies from shared
[x] Refactored imports in webapp components
[x] Verified successful build and functionality of webapp and server
Summary
This PR refactors the
webapp
andserver
packages in the monorepo to use theshared
package as a centralized dependency source. This change reduces redundancy by consolidating common libraries and dependencies within theshared
package, streamlining the monorepo setup.Changes
Dependency Management
webapp
andserver
packages that are now provided byshared
.shared
package dependencies: Uninstalled unused dependencies within theshared
package to optimize package size and reduce bloat.Code Refactoring
webapp
components to import dependencies from theshared
package instead of localnode_modules
. This improves consistency across packages and ensures all common libraries are sourced from a single location.Technical Improvements
shared
.Testing & Verification
shared
.Additional Notes
shared
package if additional dependencies are required bywebapp
orserver
in the future to maintain consistency.Checklist
webapp
andserver
shared
webapp
components