docs(core): nx.json extends property (#15393)

This commit is contained in:
Isaac Mann 2023-03-02 19:59:36 -05:00 committed by GitHub
parent 7df4b2237b
commit a5a64cd5be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ The following is an expanded version showing all options. Your `nx.json` will li
```json {% fileName="nx.json" %}
{
"extends": "nx/presets/npm.json",
"npmScope": "happyorg",
"affected": {
"defaultBase": "main"
@ -48,6 +49,10 @@ The following is an expanded version showing all options. Your `nx.json` will li
}
```
### Extends
Some presets use the `extends` property to hide some default options in a separate json file. The json file specified in the `extends` property is located in your `node_modules` folder. The Nx preset files are specified in [the `nx` package](https://github.com/nrwl/nx/tree/master/packages/nx/presets).
### NPM Scope
Tells Nx what prefix to use when generating library imports.