Ng-packagr: package.json in output is compressed

Created on 8 Nov 2017  路  4Comments  路  Source: ng-packagr/ng-packagr

Type of Issue

[x] Bug Report
[ ] Feature Request

Description

package.json in output is compressed

How To Reproduce

use the ng-packaged and install the latest ng-packagr to perform packaging.

Expected Behaviour

no compressed for package.json

Version Information

ng-packagr: v1.5.0
node: v8.9
@angular: v5.0.0
bug

Most helpful comment

It's often helpful to inspect this output, and the size savings from having it in a single line with no white space is very minor. I think it is an excellent idea to emit this in a pretty printed form.

I further suggest something like:

https://github.com/substack/json-stable-stringify

So that there are not needless changes to the output from one run to another, from one machine to another. These new this changes will happen if using the built-in JSON.stringify.

All 4 comments

Hi @e-cloud,

what do you mean by compressed? There is no whitespace and line breaks?

@dherges, yes.

It's often helpful to inspect this output, and the size savings from having it in a single line with no white space is very minor. I think it is an excellent idea to emit this in a pretty printed form.

I further suggest something like:

https://github.com/substack/json-stable-stringify

So that there are not needless changes to the output from one run to another, from one machine to another. These new this changes will happen if using the built-in JSON.stringify.

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings