Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nx --help is confusing on Windows #15618

Closed
Den-dp opened this issue Mar 11, 2023 · 1 comment · Fixed by #15677
Closed

nx --help is confusing on Windows #15618

Den-dp opened this issue Mar 11, 2023 · 1 comment · Fixed by #15677
Assignees
Labels
os: windows Issues that can only be replicated on Windows outdated scope: core core nx functionality type: bug

Comments

@Den-dp
Copy link
Contributor

Den-dp commented Mar 11, 2023

Current Behavior

Each command suggestion has .js extension

> nx --help
Smart, Fast and Extensible Build System

Commands:
  nx.js generate <generator> [_..]                    Generate or update source code (e.g., nx generate @nrwl/js:lib mylib).                                                                                                    [aliases: g]
  nx.js run [project][:target][:configuration] [_..]  Run a target for a project
                                                      (e.g., nx run myapp:serve:production).

                                                      You can also use the infix notation to run a target:
                                                      (e.g., nx serve myapp --configuration=production)

                                                      You can skip the use of Nx cache by using the --skip-nx-cache option.
  nx.js run-many                                      Run target for multiple listed projects
  nx.js affected                                      Run target for affected projects
  nx.js affected:apps                                 Print applications affected by changes                                              [deprecated: Use `nx print-affected --type=app ...` instead. This command will be removed in v15.]
  nx.js affected:libs                                 Print libraries affected by changes                                                 [deprecated: Use `nx print-affected --type=lib ...` instead. This command will be removed in v15.]
  nx.js affected:graph                                Graph dependencies affected by changes                                                                                                                   [aliases: affected:dep-graph]
  nx.js print-affected                                Prints information about the projects and targets affected by changes
  nx.js daemon                                        Prints information about the Nx Daemon process or starts a daemon process
  nx.js graph                                         Graph dependencies within workspace                                                                                                                               [aliases: dep-graph]
  nx.js format:check                                  Check for un-formatted files
  nx.js format:write                                  Overwrite un-formatted files                                                                                                                                         [aliases: format]
  nx.js workspace-lint [files..]                      Lint nx specific workspace files (nx.json, workspace.json)
  nx.js workspace-generator [name]                    Runs a workspace generator from the tools/generators directory                                                                                          [aliases: workspace-schematic]
  nx.js migrate [packageAndVersion]                   Creates a migrations file or runs migrations from the migrations file.
                                                      - Migrate packages and create migrations.json (e.g., nx migrate @nrwl/workspace@latest)
                                                      - Run migrations (e.g., nx migrate --run-migrations=migrations.json). Use flag --if-exists to run migrations only if the migrations file exists.
  nx.js report                                        Reports useful version numbers to copy into the Nx issue template
  nx.js init                                          Adds nx.json file and installs nx if not installed already
  nx.js list [plugin]                                 Lists installed plugins, capabilities of installed plugins and other available plugins.
  nx.js reset                                         Clears all the cached Nx artifacts and metadata about the workspace and shuts down the Nx Daemon.                                                               [aliases: clear-cache]
  nx.js connect                                       Connect workspace to Nx Cloud                                                                                                                           [aliases: connect-to-nx-cloud]
  nx.js repair                                        Repair any configuration that is no longer supported by Nx.
  nx.js view-logs                                     Enables you to view and interact with the logs via the advanced analytic UI from Nx Cloud to help you debug your issue. To do this, Nx needs to connect your workspace to Nx Cloud and
                                                      upload the most recent run details. Only the metrics are uploaded, not the artefacts.
  nx.js exec                                          Executes any command as if it was a target on the project
  nx.js watch                                         Watch for changes within projects, and execute commands
  nx.js show <object>                                 Show information about the workspace (e.g., list of projects)

Options:
  --help     Show help                                                                                                                                                                                                             [boolean]
  --version  Show version number

Expected Behavior

Each of the listed commands shouldn't have .js, f.e.:

> nx --help
Smart, Fast and Extensible Build System

Commands:
  nx generate <generator> [_..]                       Generate or update source code (e.g., nx generate @nrwl/js:lib mylib).                                                                                                    [aliases: g]
  nx run [project][:target][:configuration] [_..]     Run a target for a project
                                                      (e.g., nx run myapp:serve:production).

                                                      You can also use the infix notation to run a target:
                                                      (e.g., nx serve myapp --configuration=production)

                                                      You can skip the use of Nx cache by using the --skip-nx-cache option.
  nx run-many                                         Run target for multiple listed projects
  nx affected                                         Run target for affected projects
...

GitHub Repo

No response

Steps to Reproduce

On Windows try running nx --help

Nx Report

> nx report

 >  NX   Report complete - copy this into the issue template

   Node : 18.12.1
   OS   : win32 x64
   npm  : 9.6.1

   nx                      : 15.8.6
   @nrwl/js                : 15.8.6
   @nrwl/jest              : 15.8.6
   @nrwl/linter            : 15.8.6
   @nrwl/workspace         : 15.8.6
   @nrwl/angular           : 15.8.6
   @nrwl/cli               : 15.8.6
   @nrwl/cypress           : 15.8.6
   @nrwl/devkit            : 15.8.6
   @nrwl/eslint-plugin-nx  : 15.8.6
   @nrwl/tao               : 15.8.6
   @nrwl/webpack           : 15.8.6
   typescript              : 4.9.5

Failure Logs

No response

Additional Information

No response

@AgentEnder AgentEnder added scope: core core nx functionality os: windows Issues that can only be replicated on Windows labels Mar 13, 2023
@AgentEnder AgentEnder self-assigned this Mar 13, 2023
@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
os: windows Issues that can only be replicated on Windows outdated scope: core core nx functionality type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants