pegasystems / react-sdk

The React SDK provides Pega customers with the ability to build DX components that connect Pega’s ConstellationJS Engine APIs with a design system other than the Pega Constellation design system.
https://community.pega.com/marketplace/components/react-sdk
Apache License 2.0
16 stars 30 forks source link

dx-component-builder-sdk authenticate success -> wrong exit code #506

Closed wimbarelds closed 2 weeks ago

wimbarelds commented 2 weeks ago

Describe the bug When you run the "authenticate" task from @pega/dx-component-builder-sdk and log in succesfully, the exit code is 1 (which means, error), it should be 0 (which means success).

To Reproduce Steps to reproduce the behavior:

  1. npx @pega/dx-component-builder-sdk authenticate
  2. Authenticate
  3. On windows: echo %ERRORLEVEL%, on MacOS echo $?
  4. See error-code (1)

Expected behavior When login is successful, exit code = 0

Screenshots Not applicable

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

https://en.wikipedia.org/wiki/Exit_status#Shell_and_scripts

For the shell's purposes, a command which exits with a zero exit status has succeeded. A nonzero exit status indicates failure.

To the best of my knowledge, this is the only place where an incorrect exit code is returned.

timjmartel commented 2 weeks ago

Created Pega internal Agile Studio item BUG-885298 to track issue.

niallriddell commented 2 weeks ago

Closed as being tracked as internal BUG. Will be fixed in upcoming release.