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

You must be logged in to vote

As long as I'm reading right, this is how I would go about it:

// package.json
{
  "scripts": {
      "build": "turbo run build:ts generate:clients"
    }
}
{
  "tasks": {
     "build:ts": { ... }
     "generate:clients": { ... }
   }
}

From your description, it sounds like there is no dependency between these two tasks. As shown above, this creates two tasks that turbo would run in parallel.

If the order matters as shown in your original build script, you would want to make sure that the "generate:clients task depends on build:ts, like so:

{
  "tasks": {
     "build:ts": { ... }
     "generate:clients": { 
       "dependsOn": ["build:ts"]
      }
   }
}

In both cases, developers would st…

Replies: 1 comment

Comment options

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