mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 12:29:07 +00:00
respect package.json indentation in bun install (#12328)
This commit is contained in:
@@ -1436,7 +1436,7 @@ pub const CreateCommand = struct {
|
||||
|
||||
const package_json_writer = JSPrinter.NewFileWriter(package_json_file.?);
|
||||
|
||||
const written = JSPrinter.printJSON(@TypeOf(package_json_writer), package_json_writer, package_json_expr, &source) catch |err| {
|
||||
const written = JSPrinter.printJSON(@TypeOf(package_json_writer), package_json_writer, package_json_expr, &source, .{}) catch |err| {
|
||||
Output.prettyErrorln("package.json failed to write due to error {s}", .{@errorName(err)});
|
||||
package_json_file = null;
|
||||
break :process_package_json;
|
||||
|
||||
Reference in New Issue
Block a user