Modifies the command for prepublish to enforce a single index.