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" }