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

Passthrough options should only apply to targets #733

@samchouse

Description

@samchouse

What version of Turborepo are you using?

1.1.3-canary.2

What package manager are you using / does the bug impact?

Yarn v2/v3 (node_modules linker only)

What operating system are you using?

Linux

Describe the Bug

Pass through options are being applied on all tasks in the pipeline.

Expected Behavior

Pass through options should only apply to primary tasks, eg. running turbo run publish -- --tag latest should only apply pass through to publish and not any tasks it depends on.

To Reproduce

// turbo.json
{
  "pipeline": {
    "build": {
      "dependsOn": ["^build"],
      "outputs": ["dist/**", ".next/**"]
    },
    "publish": {
      "dependsOn": ["lint"],
      "cache": false
    }
  }
}

turbo run publish -- --tag latest

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