Replies: 1 comment 6 replies
-
You can force the "turbo": {
"pipeline": {
"build": {
"dependsOn": [
"cli#build",
"^build",
],
"outputs": [
"dist/**"
]
},
"lint": {
"outputs": []
},
"dev": {
"cache": false
}
}
}, |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a monorepo with 2 packages (core and cli) and 1 app.
the app uses the cli, like this:
Where
bingo
is the bin produced by the cli package:So what happens is that when I run
npm run build
, turborepo will build the cli correctly, but it won't be available for the build step on the app. It fails with:example-hello-world:build: sh: 1: bingo: not found
If I run
npm install
(after the cli was built) and run it again, then it'll work. I believe it's because the bin file was not available during the first npm install, so it was not linked.Right now, what I'm doing on the github workflow as a workaround is:
But I want developers to have a good first experience with the repo, they should be able to just
npm install
andnpm run build
.Any thoughts?
For what's worth, this is my turbo settings:
Beta Was this translation helpful? Give feedback.
All reactions