Transform a compat module to package