cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kerri Shotts (JIRA)" <>
Subject [jira] [Commented] (CB-12766) Cordova CLI changes package.json indentation
Date Mon, 08 May 2017 13:41:04 GMT


Kerri Shotts commented on CB-12766:

A quick search (✓&q=fs.writeFileSync+stringify&type=)
reveals that there are several places where package.json is written out with four spaces instead
of two. NPM itself doesn't respect spacing and always writes out two spaces, so we may as
well follow.

> 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
>              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

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

View raw message