update prepublish rules.