- Go to the apps folder
cd apps
- Create a fresh vite app
npm create vite@latest
- Update package.json to include
@repo/ui
as a dependency
"@repo/ui": "*",
- Run npm install in the root folder
cd ..
npm install
- Run npm run dev
npm run dev
-
Try importing something from the
ui
package and rendering it -
Add a
turbo.json
to the react folder to override theoutputs
object of this module.
Ref https://turbo.build/repo/docs/core-concepts/monorepos/configuring-workspaces
{
"extends": ["//"],
"pipeline": {
"build": {
"outputs": ["dist/**"]
}
}
}