Do I need to include generated files on dart package? #994
-
|
I want seperate my freezed models into a dart package. Can I use the package if the generated files are git ignored? It impossible right, or do build_runner also running on external package? |
Beta Was this translation helpful? Give feedback.
Answered by
SunlightBro
Oct 16, 2023
Replies: 1 comment 2 replies
-
|
pub.dev pulls packages as is in your .pub-cache directory, and marks for non-editing. If you cmd-click into the code of one of your dependencies and try to edit the source, it should give you a warning. If your package relies on generated code, that code must be published. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
KeidsID
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pub.dev pulls packages as is in your .pub-cache directory, and marks for non-editing.
If you cmd-click into the code of one of your dependencies and try to edit the source, it should give you a warning.
If your package relies on generated code, that code must be published.