create a separated prepublish script