We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After modifying only a .spec.ts file, the nx affected -t build command, returns the following:
.spec.ts
nx affected -t build
NX Affected criteria defaulted to --base=main --head=HEAD ✔ nx run inventory:build:production [local cache] ✔ nx run angular-monorepo:build:production [local cache] NX Successfully ran target build for 2 projects
No project should be affected (nx.json is configured to ignore .spec.ts files, as in: !{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)).
nx.json
!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)
https://github.com/AndreiRosu/angular-monorepo
libs/products/src/lib/products/products.component.spec.ts
Node : 21.7.3 OS : darwin-arm64 Native Target : aarch64-macos npm : 10.9.0 nx : 20.4.6 @nx/js : 20.4.6 @nx/jest : 20.4.6 @nx/eslint : 20.4.6 @nx/workspace : 20.4.6 @nx/angular : 20.4.6 @nx/devkit : 20.4.6 @nx/eslint-plugin : 20.4.6 @nx/module-federation : 20.4.6 @nx/playwright : 20.4.6 @nx/web : 20.4.6 @nx/webpack : 20.4.6 typescript : 5.7.3 --------------------------------------- Registered Plugins: @nx/playwright/plugin @nx/eslint/plugin --------------------------------------- Community plugins: angular-eslint : 19.1.0
No response
Running nx show projects --affected --target=build returns a different result than nx affected -t build:
nx show projects --affected --target=build
products angular-monorepo angular-monorepo-e2e inventory inventory-e2e
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current Behavior
After modifying only a
.spec.ts
file, thenx affected -t build
command, returns the following:Expected Behavior
No project should be affected (
nx.json
is configured to ignore.spec.ts
files, as in:!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)
).GitHub Repo
https://github.com/AndreiRosu/angular-monorepo
Steps to Reproduce
Another option is to use it directly in stackblitz: https://stackblitz.com/~/github.com/AndreiRosu/angular-monorepo
libs/products/src/lib/products/products.component.spec.ts
(Add a console.log in the test)nx affected -t build
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
Running
nx show projects --affected --target=build
returns a different result thannx affected -t build
:The text was updated successfully, but these errors were encountered: