From 98150d3b48bef0e6b669f858d1bc7cec60debba5 Mon Sep 17 00:00:00 2001 From: FrozenPandaz Date: Wed, 18 Oct 2023 12:35:51 -0400 Subject: [PATCH] fix(nx-plugin): add nameAndDirectoryFormat to schema for generator,executor,migration generators --- docs/generated/packages/plugin/generators/executor.json | 2 +- docs/generated/packages/plugin/generators/generator.json | 5 +++++ docs/generated/packages/plugin/generators/migration.json | 5 +++++ packages/plugin/src/generators/executor/schema.json | 2 +- packages/plugin/src/generators/generator/schema.json | 5 +++++ packages/plugin/src/generators/migration/schema.json | 5 +++++ 6 files changed, 22 insertions(+), 2 deletions(-) diff --git a/docs/generated/packages/plugin/generators/executor.json b/docs/generated/packages/plugin/generators/executor.json index 2d54a98755360..bf82c5029a7a0 100644 --- a/docs/generated/packages/plugin/generators/executor.json +++ b/docs/generated/packages/plugin/generators/executor.json @@ -51,7 +51,7 @@ "description": "Do not add an eslint configuration for plugin json files." }, "nameAndDirectoryFormat": { - "description": "Whether to generate the component in the directory as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).", + "description": "Whether to generate the executor in the directory as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).", "type": "string", "enum": ["as-provided", "derived"] }, diff --git a/docs/generated/packages/plugin/generators/generator.json b/docs/generated/packages/plugin/generators/generator.json index 87468991b502f..a848b150c5a90 100644 --- a/docs/generated/packages/plugin/generators/generator.json +++ b/docs/generated/packages/plugin/generators/generator.json @@ -56,6 +56,11 @@ "default": false, "description": "Do not format files with prettier.", "x-priority": "internal" + }, + "nameAndDirectoryFormat": { + "description": "Whether to generate the generator in the directory as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).", + "type": "string", + "enum": ["as-provided", "derived"] } }, "required": ["name"], diff --git a/docs/generated/packages/plugin/generators/migration.json b/docs/generated/packages/plugin/generators/migration.json index ab84d4dd80b86..48bd04c3b3551 100644 --- a/docs/generated/packages/plugin/generators/migration.json +++ b/docs/generated/packages/plugin/generators/migration.json @@ -54,6 +54,11 @@ "type": "boolean", "default": false, "description": "Do not eslint configuration for plugin json files." + }, + "nameAndDirectoryFormat": { + "description": "Whether to generate the migration in the directory as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).", + "type": "string", + "enum": ["as-provided", "derived"] } }, "required": ["packageVersion"], diff --git a/packages/plugin/src/generators/executor/schema.json b/packages/plugin/src/generators/executor/schema.json index 9ccec920dc88e..fd473e980b3ef 100644 --- a/packages/plugin/src/generators/executor/schema.json +++ b/packages/plugin/src/generators/executor/schema.json @@ -51,7 +51,7 @@ "description": "Do not add an eslint configuration for plugin json files." }, "nameAndDirectoryFormat": { - "description": "Whether to generate the component in the directory as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).", + "description": "Whether to generate the executor in the directory as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).", "type": "string", "enum": ["as-provided", "derived"] }, diff --git a/packages/plugin/src/generators/generator/schema.json b/packages/plugin/src/generators/generator/schema.json index 7099315482ddf..a004eae6c5865 100644 --- a/packages/plugin/src/generators/generator/schema.json +++ b/packages/plugin/src/generators/generator/schema.json @@ -58,6 +58,11 @@ "default": false, "description": "Do not format files with prettier.", "x-priority": "internal" + }, + "nameAndDirectoryFormat": { + "description": "Whether to generate the generator in the directory as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).", + "type": "string", + "enum": ["as-provided", "derived"] } }, "required": ["name"], diff --git a/packages/plugin/src/generators/migration/schema.json b/packages/plugin/src/generators/migration/schema.json index e952a1949661f..fc3f3481cf71c 100644 --- a/packages/plugin/src/generators/migration/schema.json +++ b/packages/plugin/src/generators/migration/schema.json @@ -56,6 +56,11 @@ "type": "boolean", "default": false, "description": "Do not eslint configuration for plugin json files." + }, + "nameAndDirectoryFormat": { + "description": "Whether to generate the migration in the directory as provided, relative to the current working directory and ignoring the project (`as-provided`) or generate it using the project and directory relative to the workspace root (`derived`).", + "type": "string", + "enum": ["as-provided", "derived"] } }, "required": ["packageVersion"],