Skip to content

[turborepo] How to exclude sub directory using glob in globalDependencies #8041

Discussion options

You must be logged in to vote

I finally found that if the same config was written in app's turbo.json but not in root turbo.json, it could be worked!
Hope it helps others.

{
  "extends": [
    "//"
  ],
  "pipeline": {
    "build": {
      "inputs": [
        "$TURBO_DEFAULT$",
        "../../packages/package1/**",
        "!../../packages/package1/types/**",
        ...
      ],
      ...
    }
  }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yoyo-checkout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant