From 6ac520e28f45dba1fc63a6353a815c869decd662 Mon Sep 17 00:00:00 2001 From: Belinda Cao Date: Mon, 27 Jun 2022 15:50:00 +0800 Subject: [PATCH 1/3] fix(config): schema commit type --- packages/config/schema.json | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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 }, From 1da691910807910f5bdf00d682d24bb92a949c77 Mon Sep 17 00:00:00 2001 From: Belinda Cao Date: Mon, 27 Jun 2022 15:53:19 +0800 Subject: [PATCH 2/3] docs(changeset): Fixed commit type defined in changeset config --- .changeset/selfish-buckets-guess.md | 5 +++++ 1 file changed, 5 insertions(+) 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..a076bbe7a --- /dev/null +++ b/.changeset/selfish-buckets-guess.md @@ -0,0 +1,5 @@ +--- +"@changesets/config": patch +--- + +Fixed commit type defined in changeset config. From f8b4267677dc1baaa95fca092650799adcab5f8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Mon, 27 Jun 2022 23:01:12 +0200 Subject: [PATCH 3/3] Update .changeset/selfish-buckets-guess.md --- .changeset/selfish-buckets-guess.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/selfish-buckets-guess.md b/.changeset/selfish-buckets-guess.md index a076bbe7a..ac275ec4c 100644 --- a/.changeset/selfish-buckets-guess.md +++ b/.changeset/selfish-buckets-guess.md @@ -2,4 +2,4 @@ "@changesets/config": patch --- -Fixed commit type defined in changeset config. +Fixed the declared JSON schema type for the `commit` config option.