From 99c7ff1fc44d42913941aba4828d82f85cd8dfbd Mon Sep 17 00:00:00 2001 From: adamclark64 Date: Thu, 27 Oct 2022 09:23:08 -0600 Subject: [PATCH] add(nest-cli): flat generate option --- src/schemas/json/nest-cli.json | 9 +++++++++ src/test/nest-cli/nest-cli-generateOptions.json | 6 ++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/schemas/json/nest-cli.json b/src/schemas/json/nest-cli.json index 75f56481e50..dc278ec4e1d 100644 --- a/src/schemas/json/nest-cli.json +++ b/src/schemas/json/nest-cli.json @@ -88,11 +88,20 @@ "properties": { "spec": { "$ref": "#/definitions/GenerateSpecOptions" + }, + "flat": { + "$ref": "#/definitions/GenerateFlatOptions" } }, "default": {}, "additionalProperties": false }, + "GenerateFlatOptions": { + "type": "boolean", + "default": false, + "description": "If true, all generate commands will generate a flat structure", + "$comment": "https://docs.nestjs.com/cli/monorepo#global-generate-options" + }, "GenerateSpecOptions": { "type": ["boolean", "object"], "description": "If the value is boolean, a value of true enables spec generation by default and a value of false disables it. A flag passed on the CLI command line overrides this setting, as does a project-specific generateOptions setting (more below). If the value is an object, each key represents a schematic name, and the boolean value determines whether the default spec generation is enabled / disabled for that specific schematic. See https://docs.nestjs.com/cli/monorepo#global-generate-options for details.", diff --git a/src/test/nest-cli/nest-cli-generateOptions.json b/src/test/nest-cli/nest-cli-generateOptions.json index 7d238914d55..ac618518c71 100644 --- a/src/test/nest-cli/nest-cli-generateOptions.json +++ b/src/test/nest-cli/nest-cli-generateOptions.json @@ -30,7 +30,8 @@ "config": true, "controller": false, "co": false - } + }, + "flat": false }, "monorepo": true, "projects": { @@ -57,7 +58,8 @@ "config": false, "controller": true, "co": true - } + }, + "flat": true } } },