packages upgrade smart-compile