prepublish compile