mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 21:01:52 +00:00
respect package.json indentation in bun install (#12328)
This commit is contained in:
@@ -362,6 +362,7 @@ pub const InitCommand = struct {
|
||||
package_json_writer,
|
||||
js_ast.Expr{ .data = .{ .e_object = fields.object }, .loc = logger.Loc.Empty },
|
||||
&logger.Source.initEmptyFile("package.json"),
|
||||
.{},
|
||||
) catch |err| {
|
||||
Output.prettyErrorln("package.json failed to write due to error {s}", .{@errorName(err)});
|
||||
package_json_file = null;
|
||||
|
||||
Reference in New Issue
Block a user