Skip to content
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

fix: update the generated provider file #22

Merged
merged 1 commit into from
Aug 17, 2024

Conversation

devtronic
Copy link
Member

@devtronic devtronic commented Aug 17, 2024

Cause
The ServiceProviderBuilder did not emit an updated version since the @GenerateServiceProvider annotation doesn't exist in newly created files.

Solution
We added a new generatedProviderFile option to the preflightBuilder configuration. You need to put the relative path to the generated provider file (*.catalyst_builder.g.dart) in this option. The PreflightBuilder will automatically delete the file if it exists. This lead to a full regeneration of the service provider file. 🙌

@devtronic devtronic force-pushed the fix-updating-the-generated-file branch from 913533b to 93b9d33 Compare August 17, 2024 22:21
Cause
The ServiceProviderBuilder did not emit an updated version since the `@GenerateServiceProvider` annotation
doesn't exist in the most files.

Solution
We added a new `generatedProviderFile` option to the preflightBuilder configuration. You need to put the relative path
to the generated provider file (`*.catalyst_builder.g.dart`) in this option.
The PreflightBuilder will automatically delete the file if it exists. This lead to a full regeneration of the service
provider file. 🙌
@devtronic devtronic force-pushed the fix-updating-the-generated-file branch from 93b9d33 to 781134a Compare August 17, 2024 22:44
@devtronic devtronic merged commit ffcaae0 into main Aug 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant