From d11a22bbd66ed22f3fe349b15601d882c98df86a Mon Sep 17 00:00:00 2001 From: James Henry Date: Fri, 8 Dec 2023 02:12:53 +0400 Subject: [PATCH] fix(core): add release.projects option to schema (#20645) --- packages/nx/schemas/nx-schema.json | 31 ++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/packages/nx/schemas/nx-schema.json b/packages/nx/schemas/nx-schema.json index df6c7fed74..b58e83cc46 100644 --- a/packages/nx/schemas/nx-schema.json +++ b/packages/nx/schemas/nx-schema.json @@ -101,6 +101,22 @@ "description": "Configuration for the nx release commands.", "additionalProperties": false, "properties": { + "projects": { + "oneOf": [ + { + "type": "string", + "description": "A project name" + }, + { + "type": "array", + "description": "An array of project names", + "minItems": 1, + "items": { + "type": "string" + } + } + ] + }, "groups": { "type": "object", "additionalProperties": { @@ -113,14 +129,16 @@ "projects": { "oneOf": [ { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1 + "type": "string", + "description": "A project name" }, { - "type": "string" + "type": "array", + "description": "An array of project names", + "minItems": 1, + "items": { + "type": "string" + } } ] }, @@ -421,6 +439,7 @@ { "type": "array", "description": "An array of project names", + "minItems": 1, "items": { "type": "string" }