From 59148637fbb4a2aa6e5c735b8e3d8f57377a50fa Mon Sep 17 00:00:00 2001 From: Nicholas Cunningham Date: Mon, 17 Jun 2024 07:23:11 -0600 Subject: [PATCH] fix(nest): Add missing props (#26534) Add missing props back to the schema so that they can be defaulted/overwritten. closes: #26384 (cherry picked from commit c467129758b5723fb18d1528ad27fc34c803300c) --- docs/generated/packages/nest/generators/resolver.json | 5 +++++ docs/generated/packages/nest/generators/resource.json | 5 +++++ packages/nest/src/generators/resolver/schema.json | 5 +++++ packages/nest/src/generators/resource/schema.json | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/docs/generated/packages/nest/generators/resolver.json b/docs/generated/packages/nest/generators/resolver.json index 0d31a6a226d11..462284a80076a 100644 --- a/docs/generated/packages/nest/generators/resolver.json +++ b/docs/generated/packages/nest/generators/resolver.json @@ -22,6 +22,11 @@ "alias": "p", "x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. It will be removed in Nx v20." }, + "nameAndDirectoryFormat": { + "description": "Whether to generate the project name and root directory as provided (`as-provided`) or generate them composing their values and taking the configured layout into account (`derived`).", + "type": "string", + "enum": ["as-provided", "derived"] + }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", "type": "string", diff --git a/docs/generated/packages/nest/generators/resource.json b/docs/generated/packages/nest/generators/resource.json index b024614e95474..3259f3cb6b935 100644 --- a/docs/generated/packages/nest/generators/resource.json +++ b/docs/generated/packages/nest/generators/resource.json @@ -22,6 +22,11 @@ "alias": "p", "x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. It will be removed in Nx v20." }, + "nameAndDirectoryFormat": { + "description": "Whether to generate the project name and root directory as provided (`as-provided`) or generate them composing their values and taking the configured layout into account (`derived`).", + "type": "string", + "enum": ["as-provided", "derived"] + }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", "type": "string", diff --git a/packages/nest/src/generators/resolver/schema.json b/packages/nest/src/generators/resolver/schema.json index 496ca5b1d4a83..876a410754c7a 100644 --- a/packages/nest/src/generators/resolver/schema.json +++ b/packages/nest/src/generators/resolver/schema.json @@ -24,6 +24,11 @@ "alias": "p", "x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. It will be removed in Nx v20." }, + "nameAndDirectoryFormat": { + "description": "Whether to generate the project name and root directory as provided (`as-provided`) or generate them composing their values and taking the configured layout into account (`derived`).", + "type": "string", + "enum": ["as-provided", "derived"] + }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", "type": "string", diff --git a/packages/nest/src/generators/resource/schema.json b/packages/nest/src/generators/resource/schema.json index d35f8a055e3c9..d41f9de692529 100644 --- a/packages/nest/src/generators/resource/schema.json +++ b/packages/nest/src/generators/resource/schema.json @@ -24,6 +24,11 @@ "alias": "p", "x-deprecated": "Provide The `directory` option instead and use the `as-provided` format. the project will be determined from the directory provided. It will be removed in Nx v20." }, + "nameAndDirectoryFormat": { + "description": "Whether to generate the project name and root directory as provided (`as-provided`) or generate them composing their values and taking the configured layout into account (`derived`).", + "type": "string", + "enum": ["as-provided", "derived"] + }, "directory": { "description": "Directory where the generated files are placed. when `--nameAndDirectoryFormat=as-provided`, it will be relative to the current working directory. otherwise, it will be relative to the workspace root.", "type": "string",