* docs(nxdev): restructure docs to diataxis style * docs(nxdev): cleanup * docs(nxdev): fix links * chore(nxdev): format * docs(nxdev): fix broken images * docs(nxdev): fix links * docs(nxdev): fix links * docs(nxdev): fix links * docs(nxdev): tweaks * docs(nxdev): redirect rules * docs(nxdev): fixes
861 B
861 B
How the Project Graph is Built
Nx creates a graph of all the dependencies between projects in your workspace using two sources of information:
-
Typescript
importstatements referencing a particular project's path aliasFor instance, if a file in
my-apphas this code:import { something } from '@myorg/awesome-library';Then
my-appdepends onawesome-library -
Manually created
implicitDependenciesin the project configuration file.If your project configuration has this content:
{% tabs %} {% tab label="package.json" %}
{
"name": "myapp",
"nx": {
"implicitDependencies": ["some-api"]
}
}
{% /tab %} {% tab label="project.json" %}
{
"root": "/libs/myapp",
"implicitDependencies": ["some-api"]
}
{% /tab %} {% /tabs %}
Then my-app depends on some-api