Skip to content
New issue

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

[Feature] enforce boundaries should register inputs to watch boundary config #769

Open
Tungsten78 opened this issue Oct 5, 2023 · 0 comments
Labels
enhancement New feature or request needs-triage This issue has yet to be looked over by a core team member

Comments

@Tungsten78
Copy link
Contributor

Similar to eslint executor which inserts into nx.json's targetDefaults

    "@nx/linter:eslint": {
      "inputs": ["default", "{workspaceRoot}/.eslintrc.json"]
    },

Workaround is to add a target default for @nx-dotnet/core:build.

    "@nx-dotnet/core:build": {
      "inputs": ["default", "{workspaceRoot}/.eslintrc.json"]
    },

Note: enfore-module-boundaries.js will also include .nx-dotnet.rc.json, not sure if this impacts the cache check or not.

As a related aside, is there a reason enforce boundaries is attached to the build executor and not lint?

@Tungsten78 Tungsten78 added enhancement New feature or request needs-triage This issue has yet to be looked over by a core team member labels Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-triage This issue has yet to be looked over by a core team member
Projects
None yet
Development

No branches or pull requests

1 participant