Hi!
Is there any guide or solution to use pnpm workspaces + turborepo + base directory deploy?
I have this structure:
repository-root/
├─ package.json
├─ turbo.json
├─ pnpm-workspace.yaml
├─ site-1/
│ ├─ netlify.toml
│ ├─ package.json
├─ site-2/
│ ├─ netlify.toml
│ ├─ package.json
├─ ui-library/
│ ├─ netlify.toml
│ ├─ package.json
// turbo.json
{
"$schema": "https://turborepo.org/schema.json",
"baseBranch": "origin/main",
"pipeline": {
"dev": {
"cache": false
},
"build": {
"dependsOn": [
"^build"
],
"outputs": [
"build/**",
"dist/**"
]
}
}
}
And these are the dependencies logic
- site-1 build depends on ui-library build (not working)
- site-2 build do not depends on any other build ( it works )
- ui-library build do not depends on any other build ( it works )
// site-1 package.json
"dependencies": {
"@organization/ui": "../ui-library",
}
site-1 build fails because it does not find the proper ui-library package.
If I try to add a cd ..
command on the preInstall hook, the build fails with an ENOENT
error