diff --git a/packages/config/schema.json b/packages/config/schema.json index 3ec3939fd..b04f3a423 100644 --- a/packages/config/schema.json +++ b/packages/config/schema.json @@ -50,7 +50,27 @@ "default": [] }, "commit": { - "type": "boolean", + "anyOf": [ + { + "type": "array", + "items": [ + { + "type": "string", + "title": "Commit Generator Path" + }, + { "title": "Commit Generator Options" } + ], + "minItems": 1, + "maxItems": 2 + }, + { + "type": "boolean" + }, + { + "type": "string", + "title": "Commit Generator Path" + } + ], "description": "Determines whether Changesets should commit the results of the add and version command.", "default": false },