add prepublish script