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

[turborepo] Possibility to define ignore patterns - .turboignore and respective property in pipeline configuration #3970

@b12k

Description

@b12k

Which project is this feature idea for?

Turborepo

Describe the feature you'd like to request

It would be very handy to be able to ignore directories/files/*.ext globally and per workspace (using .turboignore), per task (using turbo.json).

That will allow more freedom in monorepo structure and more granular control over task execution.

Describe the solution you'd like

.turboignore

Similar to .gitignore in the repo root and per workspace.

Also like .eslintignore, .prettierignore and other common tools do.

turbo.json

{
  "$schema": "https://turborepo.org/schema.json",
  "pipeline": {
    "build": {
      "dependsOn": ["^build"],
      "outputs": ["dist"],
      "ignores": ["infra", "*.tf"]
    },
    "publish": {
      "dependsOn": ["build"]
    }
  }
}

Describe alternatives you've considered

Different monorepo structure.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions