Adds scripts to prepublish and postpublish