docs(nx-dev): remove unnecessary directory flag from host & remote generation commands (#29704)

### Changes
Remove `--directory` flag if the arg is provided as a positional. If
provided it will throw errors.
This commit is contained in:
Nicholas Cunningham 2025-01-21 13:09:22 -07:00 committed by GitHub
parent 104f06ccb7
commit 7f3ca1f094
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,7 @@ To generate only a host application in your workspace, run the following command
{% tabs %}
{% tab label="React" %}
```{% command="nx g @nx/react:host apps/shell --directory=apps/react/shell" %}
```{% command="nx g @nx/react:host apps/react/shell" %}
NX Generating @nx/react:host
CREATE apps/react/shell/src/app/app.spec.tsx
@ -48,7 +48,7 @@ CREATE apps/react/shell/webpack.config.prod.ts
{% /tab %}
{% tab label="Angular" %}
```{% command="nx g @nx/angular:host apps/shell --directory=apps/angular/shell" %}
```{% command="nx g @nx/angular:host apps/angular/shell" %}
NX Generating @nx/angular:host
CREATE apps/angular/shell/project.json