这是indexloc提供的服务,不要输入任何密码
Skip to content
Discussion options

You must be logged in to vote

turbo.json files can be nest in packages and apps as long as they extend the base configuration.

{
  "extends": ["//"],
  "tasks": {
    "build": {
      "dependsOn": ["^build"],
      "env": ["API_KEY"],
      "inputs": ["$TURBO_DEFAULT$", ".env*"],
      "outputs": [".next/**", "!.next/cache/**"]
    }
  }
}

I definitely prefer this approach to sticking everything in the single turbo.json as I can easily bin off old packages / apps without their configurations lingering.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChazUK
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