Snyk: Wizard doesn't remain indents type on saving updated dependencies in package.json

Created on 16 Dec 2019  路  4Comments  路  Source: snyk/snyk

  • node -v: v10.16.0
  • npm -v: 6.11.3
  • snyk -v: 1.242.1
  • Command run: snyk wizard

Expected behaviour

Indents(kind and them count) remains on saving updated dependencies in package.json or this can configure.

Actual behaviour

Indents are fixed(two space).

Steps to reproduce

snyk wizard


If applicable, please append the --debug flag on your command and include the output here **ensuring to remove any sensitive/personal details or tokens.

bug released

All 4 comments

馃憢 just to be super sure we are looking in the right place, could you please post your example of a package.json or the bad one you got after wizard and we can use it?

We use npm and yarn directly so wonder why it changes.

@lili2311 example: https://github.com/imrekb/snyk-issue-911.
I suppose source of bug in next: you do JSON.stringify(..., ..., 2) in code of commands.

Thanks! Let me hunt around in the code see what we can do :)

:tada: This issue has been resolved in version 1.267.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

Was this page helpful?
0 / 5 - 0 ratings