-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(core): recipe to include all package.json files
- Loading branch information
1 parent
99833a3
commit 44503c2
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Include All package.json Files as Projects | ||
|
||
As of Nx 15.0.11, we include in the graph any `package.json` file that is referenced in the `workspaces` property of the root `package.json` file. (`lerna.json` for Lerna repos or `pnpm-workspaces.yml` for pnpm repos) | ||
|
||
If you would prefer to add all `package.json` files as projects, add the following configuration to the `nx.json` file: | ||
|
||
```json {% filename="nx.json" %} | ||
{ | ||
"plugins": ["nx/plugins/package-json"] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters