cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CB-12766) Cordova CLI changes package.json indentation
Date Tue, 06 Jun 2017 05:00:25 GMT


ASF subversion and git services commented on CB-12766:

Commit c3f6c9df1046e6609db0ff730a9be62222f302d5 in cordova-common's branch refs/heads/master
from [~remcohaszing]
[;h=c3f6c9d ]

CB-12766 Consistently write JSON with 2 spaces indentation

JSON was written with 4 spaces indentation and even a tab at some
point. Most NodeJS tools write their JSON configuration with an
indentation of 2 spaces. Most notably npm does this, which writes to
package.json, as does Cordova. This caused unnecessary changes in

 This closes #558

> Cordova CLI changes package.json indentation
> --------------------------------------------
>                 Key: CB-12766
>                 URL:
>             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: cordova-next, 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message