Write one emitted file, honouring the write-if-changed setting.
Shared for the same reason as resolveSchemaEmitOptions: both generators must treat
an unchanged file identically, or one leaves mtimes alone while the other churns them and
downstream incremental builds see phantom work.
Write one emitted file, honouring the write-if-changed setting.
Shared for the same reason as resolveSchemaEmitOptions: both generators must treat an unchanged file identically, or one leaves mtimes alone while the other churns them and downstream incremental builds see phantom work.