Add prepublish compile script