Current Behavior
I use the @nx/node:library generator and specify that I want 'swc' as my compiler
eslint @nx/dependency-checker discovers that the dependency "tslib" isn't used by the project and that the project makes use of "@swc/helpers" which isn't in the dependencies
<workspaceRoot>/libs/my-lib/package.json
35:3 error The "my-lib" project uses the following packages, but they are missing from "dependencies":
- @swc/helpers @nx/dependency-checks
36:5 error The "tslib" package is not used by "my-lib" project @nx/dependency-checks
Expected Behavior
the generator, knowing that the compiler is set to 'swc' would install @swc/helpers rather than tslib as a dependency
GitHub Repo
No response
Steps to Reproduce
- npx nx generate @nx/node:library --directory=libs/my-iib --compiler=swc --linter=eslint --name=my-lib --unitTestRunner=jest --importPath=@myorg/my-lib
- npx nx run my-lib:lint
Nx Report
nx report
NX Report complete - copy this into the issue template
Node : 22.14.0
OS : darwin-x64
Native Target : x86_64-macos
npm : 10.9.2
nx (global) : 20.6.2
nx : 20.8.0
@nx/js : 20.8.0
@nx/jest : 20.8.0
@nx/eslint : 20.8.0
@nx/workspace : 20.8.0
@nx/devkit : 20.8.0
@nx/esbuild : 20.8.0
@nx/eslint-plugin : 20.8.0
@nx/module-federation : 20.8.0
@nx/node : 20.8.0
@nx/react : 20.8.0
@nx/vite : 20.8.0
@nx/web : 20.8.0
typescript : 5.7.3
---------------------------------------
Registered Plugins:
@nx/js/typescript
@nx/react/router-plugin
@nx/eslint/plugin
@nx/vite/plugin
@nx/jest/plugin
---------------------------------------
Cache Usage: 46.31 KB / 186.27 GB
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
Current Behavior
I use the @nx/node:library generator and specify that I want 'swc' as my compiler
eslint @nx/dependency-checker discovers that the dependency "tslib" isn't used by the project and that the project makes use of "@swc/helpers" which isn't in the dependencies
Expected Behavior
the generator, knowing that the compiler is set to 'swc' would install
@swc/helpersrather thantslibas a dependencyGitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response