Skip to content

chore: upgrade Nx 23 to 24 - #96

Open
qagwaai wants to merge 5 commits into
angular-threejs:mainfrom
qagwaai:chore/nx-24
Open

qagwaai wants to merge 5 commits into
angular-threejs:mainfrom
qagwaai:chore/nx-24

Conversation

@qagwaai

@qagwaai qagwaai commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

chore: upgrade Nx 23 → 24

First step toward Angular 22 support: @nx/angular@23 caps Angular tooling below 22, Nx 24 allows >=20 <23. Angular stays on 21.2.9 and TypeScript on 5.9.3 here.

Depends on #94 (Windows path fix). Its commit appears in this diff until #94 merges.

Commits

  1. chore: migrate workspace to nx 24: nx migrate 24.0.6 (required migrations only) + generated migrations. Lint/test targets become inferred; Vite configs use resolve.tsconfigPaths.
  2. fix(vite): restore tsconfig path aliases: Vitest 4.0 runs on Vite 7, which ignores resolve.tsconfigPaths, so aliases broke. Uses vite-tsconfig-paths instead; drops the now-inert nxCopyAssetsPlugin from the plugin test config.
  3. fix(eslint): load lint configs: ESLint configs under "type": "module" packages (core, theatre, tweakpane) renamed to .cjs; removed ban-types replaced by its v8 successors (same off intent); dependency-checks ignore list updated for vite-tsconfig-paths.
  4. test(plugin): update migrate-tweakpane snapshot: Nx 24 formatter output; timeout raised (test was already flaky on cold start).

Validation

Check Before (Nx 23) After (Nx 24)
test + build, 9 libs pass (1 flaky timeout) pass (212 tests)
lint no config loaded all 9 load
examples build pass pass, same warnings
soba Storybook build pass pass

Notes

  • Lint now reports 164 errors / 61 warnings. These are pre-existing: they were hidden because no lint config loaded on main. Counts match Nx 23 rule for rule with the same config fixes. Happy to address them in follow-up PRs.
  • pnpm 11: pnpm install / pnpm nx … exit 1 on the unapproved @parcel/watcher build (optional sass dependency, prebuilt binary already present). Unrelated to this PR, so pnpm-workspace.yaml is untouched; your call whether to add it to allowBuilds.
  • eslint.config.cjs and build cache: the production named input in nx.json excludes !{projectRoot}/eslint.config.js but not the renamed .cjs files, so editing the core/theatre/tweakpane lint configs now also invalidates their build cache. Left as-is to keep scope tight; adding !{projectRoot}/eslint.config.cjs is a one-line follow-up.
  • Happy to split or adjust any of this.

qagwaai and others added 5 commits September 27, 2026 11:03
`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>
@netlify

netlify Bot commented Nov 23, 2026

Copy link
Copy Markdown

👷 Deploy request for angularthreesoba pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit ad66dfb

@netlify

netlify Bot commented Nov 23, 2026

Copy link
Copy Markdown

👷 Deploy request for angularthreedemo pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit ad66dfb

@qagwaai
qagwaai marked this pull request as ready for review November 23, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant