This project is based on yarn workspaces. This tool allows to organise the project as a monorepo, have a minimal impact on installed dependencies and link the packages inside the project with a minimal effort, without the need to publish them.
Having different packages allows to re-use the same compnent library in different projects, or be ready to do so in the future.
If you do not plan to expand your project with different packages, you might want to include this component library instead of using this repository as a base.
This monorepo has the following structure:
borrow-ui/ package.json packages/ ui/ package.json documentation/ package.json website-next/ package.json
You can notice that there are different package.json files, on two levels:
Inside the packages you can add other packages as dependencies and yarn will be smart enough to link them. The main package of this project is the ui package (it's full path is borrow-ui/packages/ui).
Go to the next section to see how it is organised.