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

Wait for output path to exist before running the script #725

@egoist

Description

@egoist

Describe the feature you'd like to request

I use Turbo to run dev scripts:

turbo run dev --parallel --no-cache --scope=package-a --include-dependencies

The problem is package A might depend on the output files of package B:

  • with --parallel it ignores all that, so A's dev script will fail for the first time
  • without --parallel only the dev script of A's dependencies get executed.

Relevant turbo.json:

{
  "$schema": "https://turborepo.org/schema.json",
  "pipeline": {
    "build": {
      "dependsOn": ["^build"]
    },
    "test": {
      "dependsOn": ["build"]
    },
    "dev": {
      "dependsOn": ["^dev"],
      "cache": false
    },
    "lint": {}
  }
}

Describe the solution you'd like

Maybe the output option should be taken into account when running the script.

Describe alternatives you've considered

Writing some custom script to execute the dev script for now

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions