Exporting and importing a view from a custom module
Content types and Views are 2 different things. It's your job as a module developer to keep the two in sync over time.

Some modules can help with this such as the Features module, if you dont want to track all this by hand every time.