-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[turborepo] Allow users to customize which field changes in package.json will not affect cache hits #6132
Comments
Can you provide some more specifics as to what you're trying to achieve? Specifically why the version of a workspace is changing without the contents of the workspace changing. In general, I'm not super inclined to support this as many tools read parts of |
Thanks for replay.let me My project is a monorepo containing 100 sub-packages. The version strategy is that all sub-packages shard the version in the root directory |
@chnliquan if your root Just to make sure I understand:
Is there a reason you have this setup? Why are your workspaces not installed in the workspaces they are used in? Footnotes
|
I do this so that all |
Is it necessary to bump the root package.json's |
|
That's a good point, but I'm not sure it's necessary now that I'm thinking about it.
Ok, I see what you're saying. The original intention of including |
Yep, that is what i mean, so will you add this optimization to your update schedule?
i have anthor question according to this, we assume that |
@chnliquan thanks for opening this issue. After a bunch of discussion we decided that we do not want to support this behavior. Some reasons:
Apologies for the disappointing news, but we did discuss this a number of times to make sure that we felt good about this decision. |
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
version
field of package.json of any sub-repoReproduction Repo
No response
The text was updated successfully, but these errors were encountered: