Skip to content

[BUG] Exits with unsuccessful code if .prettierrc not present #2296

@justinjxzhang

Description

@justinjxzhang

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Some types can be formatted upon retrieval using prettier - but if you don't have a .prettierrc and set formatOnSave to false it will still retrieve but the program will still exit with a non-zero code due to the missing .prettierrc fikle.

Expected Behavior

If formatOnSave is set to false I would expect that the program exits with code 0 even if .prettierrc is not present.

Steps To Reproduce

  1. In .mcdevrc.json set options.formatOnSave to false and add query to metaDataTypes.retrieve
  2. Run a retrieve
  3. run echo $? to get the exit code of the retrieve command - this will be 1.

Version

8.0.0

Environment

  • OS: Unix
  • Node: 20.10.0
  • npm: 10.2.3

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

I've raised a PR in #2284 - not sure if this is the best way to get eyes on it?

Metadata

Metadata

Labels

bugSomething isn't workinge/IDEEPIC

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions