mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Change indent for package.json from 2 to 4 spaces
Minor style issue more than anything. If using `php artisan preset` it will use PHP's `JSON_PRETTY_PRINT` to rewrite the file (https://github.com/laravel/framework/blob/master/src/Illuminate/Foundation/Console/Presets/Preset.php#L44). `JSON_PRETTY_PRINT` uses four spaces for indentation, causing the entire file contents to be altered upon a diff. Rather than adding logic to change the indentation after executing `json_encode()` in `Illuminate\Foundation\Console\Presets\Preset`, it seems easier to just fix the default indentation in `package.json`. NPM doesn't seem to change the spacing at all, so this seems like a happy medium.
This commit is contained in:
parent
58ed5459b1
commit
0baa2e7794