Build on prepublish

Hope I didn't miss anything, please check this once again for me )