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

[turborepo] Allow users to customize which field changes in package.json will not affect cache hits #6132

@chnliquan

Description

@chnliquan

What version of Turborepo are you using?

1.10.7

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

pnpm

What operating system are you using?

Mac

Describe the Bug

By default, Turborepo will not cache when the package.json changed, lets say i have 100 sub-repos in one monorepo, the 100 sub-repos shared same version, it will change the version field and turborepo will run task 100 times when update the version every time even if my codebase(src) has not changed

Expected Behavior

Allow users to customize which field changes will not affect cache hits

To Reproduce

  1. pnpm run build
  2. change the version field of package.json of any sub-repo
  3. pnpm run build

Reproduction Repo

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions