-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
Prevent updates to package.json #1912
Comments
What file? The @symfony/ux-turbo/... one ? |
Yes, that's right. |
Those files are the ones connecting Symfony with Turbo... what would you remove them ? |
I already have turbo included in my package.json "@hotwired/turbo": "^7.1.0", Why would I need the ux/turbo package? The only real reason that I am using if (TurboBundle::STREAM_FORMAT !== $request->getPreferredFormat(TurboBundle::STREAM_FORMAT)) {
...
} |
The package would not install Turbo twice, so i am not sure to understand the problem here.
Because you installed the symfony/ux-turbo bundle? :) More information about the |
Yes but I still don't want it to change my package.json. Is there a way to prevent that? I only want to use this bundle to detect the request type. |
If you disable Flex probably ? |
I can't do that. I guess I'll just have to reset package.json whenever an update occurs. It's a shame it can't be configured as I'm not using this package for loading turbo, I just want it to detect the request type |
Well, if having another dependency installed (even if not called) is impossible for you, yes i think this should be the only solution right now. If you have another idea / implementation suggestion, we'd be glad to help you open a PR |
Thank you for this issue. |
Friendly ping? Should this still be open? I will close if I don't hear anything. |
Hey, I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen! |
perhaps see symfony/flex#1032 |
Good catch @94noni ! Closing here, as if something can be done, it will indeed be done on flex side. |
I am including symfony/ux-turbo in my application and it keeps trying to include a file in my package.json.
I don't want to include this in my package.json as I am including turbo myself. Is there a way to prevent changes to packages.json from specific bundles?
The text was updated successfully, but these errors were encountered: