From 7b1c0c1b73a19b50fe3a104acb440c604eab108f Mon Sep 17 00:00:00 2001 From: Belinda Cao Date: Tue, 28 Jun 2022 05:01:30 +0800 Subject: [PATCH] Fixed the declared JSON schema type for the `commit` config option (#852) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- .changeset/selfish-buckets-guess.md | 5 +++++ packages/config/schema.json | 22 +++++++++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .changeset/selfish-buckets-guess.md 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 },