1. Go to the apps folder
cd apps
  1. Create a fresh vite app
npm create vite@latest 
  1. Update package.json to include @repo/ui as a dependency
"@repo/ui": "*",
  1. Run npm install in the root folder
cd ..
npm install
  1. Run npm run dev
npm run dev
  1. Try importing something from the ui package and rendering it
  2. Add a turbo.json to the react folder to override the outputs object of this module.

Ref https://turbo.build/repo/docs/core-concepts/monorepos/configuring-workspaces

{
  "extends": ["//"],
  "pipeline": {
    "build": {
      "outputs": ["dist/**"]
    }
  }
}