fix(npmrc): handle BOM conversion (#18878)

This commit is contained in:
Dylan Conway
2025-05-06 22:16:56 -07:00
committed by GitHub
parent 00a3cbd977
commit acf36d958a
11 changed files with 496 additions and 424 deletions

View File

@@ -706,7 +706,7 @@ pub const PackCommand = struct {
if (strings.eqlComptime(entry_name, "package.json")) {
if (entry.kind != .file) break :root_depth;
// find more dependencies to bundle
const source = File.toSourceAt(dir, entryNameZ(entry_name, entry_subpath), ctx.allocator).unwrap() catch |err| {
const source = File.toSourceAt(dir, entryNameZ(entry_name, entry_subpath), ctx.allocator, .{}).unwrap() catch |err| {
Output.err(err, "failed to read package.json: \"{s}\"", .{entry_subpath});
Global.crash();
};