clean up bundle for publishing