Skip to content

feat(nest): added @nx/nest/plugin with NestJS project detection through nest-cli.json#35551

Open
vrxj81 wants to merge 2 commits intonrwl:masterfrom
vrxj81:feat/nest-plugin-entrypoint
Open

feat(nest): added @nx/nest/plugin with NestJS project detection through nest-cli.json#35551
vrxj81 wants to merge 2 commits intonrwl:masterfrom
vrxj81:feat/nest-plugin-entrypoint

Conversation

@vrxj81
Copy link
Copy Markdown

@vrxj81 vrxj81 commented May 3, 2026

Current Behavior

The @nx/nest plugin does not detect NestJS projects from nest-cli.json, so Nest applications configured that way are not picked up by the plugin.

Expected Behavior

The @nx/nest plugin detects NestJS projects through nest-cli.json.

Related Issue(s)

Refs #35503

@vrxj81 vrxj81 requested a review from a team as a code owner May 3, 2026 07:25
@vrxj81 vrxj81 requested a review from FrozenPandaz May 3, 2026 07:25
@netlify
Copy link
Copy Markdown

netlify Bot commented May 3, 2026

👷 Deploy request for nx-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 899714b

@netlify
Copy link
Copy Markdown

netlify Bot commented May 3, 2026

👷 Deploy request for nx-dev pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 899714b

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented May 4, 2026

View your CI Pipeline Execution ↗ for commit f5d1c45

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 1h 2m 49s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 3s View ↗
nx-cloud record -- pnpm nx-cloud conformance:check ✅ Succeeded 17s View ↗
nx build workspace-plugin ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 24s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 5s View ↗

☁️ Nx Cloud last updated this comment at 2026-05-04 21:49:38 UTC

@vrxj81
Copy link
Copy Markdown
Author

vrxj81 commented May 6, 2026

Manual test steps

  • created Nest app using nest new nest-test
  • added Nx using nx init
  • installed @nx/nest plugin through local path entry in package.json, running npm install and adding plugin config to nx.json ( { plugins: [ "@nx/nest/plugin"} )
  • removed default nest NPM build target from package.json
  • ran nx show projects
  • ran nx show project nest-test
  • ran nx build nest-test twice (target and cache test)
  • ran nx serve nest-test

Results

nx show projects

nest-test

nx show project nest-test

image

nx build nest-test (first run)


> nx run nest-test:build

> nest build


———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 NX   Successfully ran target build for project nest-test (2s)

nx build nest-test (second run)

> nx run nest-test:build  [local cache]

> nest build


———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 NX   Successfully ran target build for project nest-test (79ms)

nx serve nest-test

> nx run nest-test:serve

> nest start --watch

[13:30:59] Starting compilation in watch mode...

[13:30:59] Found 0 errors. Watching for file changes.


[Nest] 71857  - 06/05/2026, 13:31:00     LOG [NestFactory] Starting Nest application...
[Nest] 71857  - 06/05/2026, 13:31:00     LOG [InstanceLoader] AppModule dependencies initialized +5ms
[Nest] 71857  - 06/05/2026, 13:31:00     LOG [RoutesResolver] AppController {/}: +1ms
[Nest] 71857  - 06/05/2026, 13:31:00     LOG [RouterExplorer] Mapped {/, GET} route +1ms
[Nest] 71857  - 06/05/2026, 13:31:00     LOG [NestApplication] Nest application successfully started +1ms

———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 NX   Successfully ran target serve for project nest-test

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