Skip to content

Commit

Permalink
docs(core): define affected (nrwl#3524)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored Aug 19, 2020
1 parent 7407aa4 commit 106b04f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/shared/monorepo-affected.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ nx test client-feature-main
nx e2e client-e2e
```

Now imagine, `admin` depends on `admin-feature-permissions`. If we make a change to `admin-feature-permissions`, we need to make sure nothing in the workspace is broken unintentionally.
Now imagine, `admin` depends on `admin-feature-permissions`. If we make a change to `admin-feature-permissions`, we not only need to make sure that `admin-feature-permissions` still functions as intended. We also need to make sure nothing that depends on `admin-feature-permissions` such as `admin` is broken unintentionally.

Typically, you would do it like this:

Expand Down Expand Up @@ -54,6 +54,8 @@ Run `nx dep-graph` to see the dependency graph.

## Affected

Affected projects are projects that are impacted by a set of changes. In order to find out which projects could be impacted by a particular change, Nx first determines which projects own the changed files. These projects are definitely impacted because they had changes made directly to them. Projects that consume projects which are directly changed may also be impacted by these changes. As a result, those projects must be tested as well to verify that all changes in behavior are identified.

To calculate the project affected by your change, Nx needs to know what file you changed. The most direct way to do it is by passing `--files`:

```bash
Expand Down

0 comments on commit 106b04f

Please sign in to comment.