Adds prepublish script.