diff --git a/.changeset/selfish-buckets-guess.md b/.changeset/selfish-buckets-guess.md new file mode 100644 index 000000000..ac275ec4c --- /dev/null +++ b/.changeset/selfish-buckets-guess.md @@ -0,0 +1,5 @@ +--- +"@changesets/config": patch +--- + +Fixed the declared JSON schema type for the `commit` config option. diff --git a/packages/config/schema.json b/packages/config/schema.json index 3ec3939fd..c5b6d2f14 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 },