From b0cfaf5d729bdf76b47ee9676030a53e7592e02f Mon Sep 17 00:00:00 2001 From: qagwaai Date: Sun, 27 Sep 2026 11:03:39 -0600 Subject: [PATCH] fix(plugin): rename aux generator paths reserved on Windows `AUX` is a reserved device name on Windows, and the restriction applies to a path segment's basename before its extension. Both the directory `src/generators/aux/` and the file `aux.ts` within it were therefore invalid paths, causing `git clone` to fail on Windows with "error: invalid path" and leaving the working tree unusable. Rename the directory to `auxiliary/` and the file to `auxiliary.ts`, and update the factory paths in `generators.json` plus the import in `compat.ts` to match. The generator is still registered under the name `aux`, so consumers continue to invoke it as `nx g angular-three-plugin:aux`. Only internal file paths change, so there is no public API impact. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- libs/plugin/generators.json | 8 ++++---- .../src/generators/{aux/aux.ts => auxiliary/auxiliary.ts} | 0 libs/plugin/src/generators/{aux => auxiliary}/compat.ts | 2 +- libs/plugin/src/generators/{aux => auxiliary}/schema.json | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename libs/plugin/src/generators/{aux/aux.ts => auxiliary/auxiliary.ts} (100%) rename libs/plugin/src/generators/{aux => auxiliary}/compat.ts (71%) rename libs/plugin/src/generators/{aux => auxiliary}/schema.json (100%) diff --git a/libs/plugin/generators.json b/libs/plugin/generators.json index 372ee3e2..14cc557e 100644 --- a/libs/plugin/generators.json +++ b/libs/plugin/generators.json @@ -11,8 +11,8 @@ "description": "gltf generator" }, "aux": { - "factory": "./src/generators/aux/aux", - "schema": "./src/generators/aux/schema.json", + "factory": "./src/generators/auxiliary/auxiliary", + "schema": "./src/generators/auxiliary/schema.json", "description": "aux generator" }, "migrate-tweakpane": { @@ -33,8 +33,8 @@ "description": "gltf generator" }, "aux": { - "factory": "./src/generators/aux/compat", - "schema": "./src/generators/aux/schema.json", + "factory": "./src/generators/auxiliary/compat", + "schema": "./src/generators/auxiliary/schema.json", "description": "aux generator" }, "migrate-tweakpane": { diff --git a/libs/plugin/src/generators/aux/aux.ts b/libs/plugin/src/generators/auxiliary/auxiliary.ts similarity index 100% rename from libs/plugin/src/generators/aux/aux.ts rename to libs/plugin/src/generators/auxiliary/auxiliary.ts diff --git a/libs/plugin/src/generators/aux/compat.ts b/libs/plugin/src/generators/auxiliary/compat.ts similarity index 71% rename from libs/plugin/src/generators/aux/compat.ts rename to libs/plugin/src/generators/auxiliary/compat.ts index 13c5d04f..d8023f25 100644 --- a/libs/plugin/src/generators/aux/compat.ts +++ b/libs/plugin/src/generators/auxiliary/compat.ts @@ -1,4 +1,4 @@ import { convertNxGenerator } from '@nx/devkit'; -import auxGenerator from './aux'; +import auxGenerator from './auxiliary'; export default convertNxGenerator(auxGenerator); diff --git a/libs/plugin/src/generators/aux/schema.json b/libs/plugin/src/generators/auxiliary/schema.json similarity index 100% rename from libs/plugin/src/generators/aux/schema.json rename to libs/plugin/src/generators/auxiliary/schema.json