[
https://issues.apache.org/jira/browse/CB-12766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16012797#comment-16012797
]
ASF GitHub Bot commented on CB-12766:
-------------------------------------
Github user remcohaszing commented on the issue:
https://github.com/apache/cordova-lib/pull/558
@piotrowski I did a regex replace to replace all occurrences of
`JSON.stringify`, so basically this affects all JSON files that are modified by
Cordova.
I think this is a pretty complete list of the files affected:
- *.cordova/config.json*
- *plugins/fetch.json*
- *plugins/[platform].json*
- *package.json*
> Cordova CLI changes package.json indentation
> --------------------------------------------
>
> Key: CB-12766
> URL: https://issues.apache.org/jira/browse/CB-12766
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-cli, cordova-lib
> Affects Versions: 7.0.0
> Reporter: Remco Haszing
> Assignee: Kerri Shotts
> Priority: Minor
> Labels: easy-fix
>
> While Cordova is busy adding platforms / plugins, it writes to package.json
> several times. In this process the indentation of package.json alternates
> between 2 and 4 spaces. The final result is an indentation of 4 spaces, which
> conflicts with the indentation of 2 spaces that npm uses.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]