mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 12:29:07 +00:00
fix(windows): transpiler cache and other test fixes (#8471)
* umask * process args * update reportError.test.ts * file exists * transpiler cache * back to const * remove failing comments * [autofix.ci] apply automated fixes * update comment * debug assert and remmove branch * oops * escape * path sep * seekTo * disable --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
This commit is contained in:
@@ -136,10 +136,12 @@ pub const InitCommand = struct {
|
||||
package_json_contents = try MutableString.init(alloc, size);
|
||||
package_json_contents.list.expandToCapacity();
|
||||
|
||||
const prev_file_pos = if (comptime Environment.isWindows) try pkg.getPos() else 0;
|
||||
_ = pkg.preadAll(package_json_contents.list.items, 0) catch {
|
||||
package_json_file = null;
|
||||
break :read_package_json;
|
||||
};
|
||||
if (comptime Environment.isWindows) try pkg.seekTo(prev_file_pos);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user