After "ionic run build" all the AoT metadata files are generated what do you do to avoid getting errors on the next build?

I am aware of the --dev option, but I want to know what others have done after doing a prod build.

Option 1: Add a new command like “clean” that manually deletes them all
Option 2: Figure out a way to have the build and linter ignore them (I am not sure how to go about that)
Option 3: Some other way that you have come up with that works well for you.

It looks like the extra AoT metadata files are only generated for ts files that use barrels. Why is that? Is there any way to avoid having those files generated in my src directory.