Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed the declared JSON schema type for the commit config option (#852
)

* fix(config): schema commit type

* docs(changeset): Fixed commit type defined in changeset config

* Update .changeset/selfish-buckets-guess.md

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
  • Loading branch information
caohuilin and Andarist committed Jun 27, 2022
1 parent 34a9210 commit 7b1c0c1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/selfish-buckets-guess.md
@@ -0,0 +1,5 @@
---
"@changesets/config": patch
---

Fixed the declared JSON schema type for the `commit` config option.
22 changes: 21 additions & 1 deletion packages/config/schema.json
Expand Up @@ -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
},
Expand Down

0 comments on commit 7b1c0c1

Please sign in to comment.