Replies: 1 comment 1 reply
-
There isn't a way to do exactly what you're describing today. However, it sounds like a workaround might be to get creative with script naming. For instance:
Then, you'd need to rename the script in Note: You could also choose to use a Package Configuration if this is a one-off for a specific package, to get that task definition localized. Let me know if that helps. I could not taking account an important piece of your puzzle. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I'm working on migrating an existing large repository to use yarn workspaces and turborepo. There are a few NPM scripts that exist in the
package.json
s that don't work without additional set up. For example, in one package I'm trying to integrate, the "test" npm only works inside a specific Docker container, in another only with certain environment variables set up.Of course the long term solution is to make these NPM scripts more "standalone" so that they work without the extra setup. I'm looking for a quicker solution so we can get a broad integration done before optimizing it.
Is it possible tell turbo to ignore specific scripts? We have "test" as a Turborepo task, but I'd like to ignore "package1#test" while still running "package2#test". I am hoping for something that is in the turbo config so that I can set it globally instead of having to filter ever turbo call.
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions