Preserve package.metadata
when packaging
#4167
Merged
package.metadata
when packaging
#4167