From 0747fe1b34a0a60d2c72e58646ca2afa29b466a4 Mon Sep 17 00:00:00 2001 From: Belinda Cao Date: Mon, 27 Jun 2022 15:50:00 +0800 Subject: [PATCH] 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..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 },