From ed2a57fcc965befe4d99a0994febc600b997f10c Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Wed, 25 Jan 2023 01:09:05 -0800 Subject: Add log --- hey.js | 1 + packages/bun-darwin-aarch64/bunx | 1 + src/install/lockfile.zig | 3 +++ 3 files changed, 5 insertions(+) create mode 100644 hey.js create mode 120000 packages/bun-darwin-aarch64/bunx diff --git a/hey.js b/hey.js new file mode 100644 index 000000000..6e23478d9 --- /dev/null +++ b/hey.js @@ -0,0 +1 @@ +console.log(await import("react/jsx-runtime.js")); diff --git a/packages/bun-darwin-aarch64/bunx b/packages/bun-darwin-aarch64/bunx new file mode 120000 index 000000000..bb83b198e --- /dev/null +++ b/packages/bun-darwin-aarch64/bunx @@ -0,0 +1 @@ +/Users/jarred/Code/bun/packages/bun-darwin-aarch64/bun \ No newline at end of file diff --git a/src/install/lockfile.zig b/src/install/lockfile.zig index 6690e1d3f..273aec901 100644 --- a/src/install/lockfile.zig +++ b/src/install/lockfile.zig @@ -1883,6 +1883,8 @@ pub const Package = extern struct { } }; + const debug = Output.scoped(.Lockfile, true); + pub fn clone( this_: *const Lockfile.Package, old: *Lockfile, @@ -1895,6 +1897,7 @@ pub const Package = extern struct { const old_extern_string_buf = old.buffers.extern_strings.items; var builder_ = new.stringBuilder(); var builder = &builder_; + debug("Clone: {s}@{any} ({s}, {d} dependencies)", .{ this.name.slice(old_string_buf), this.resolution.fmt(old_string_buf), @tagName(this.resolution.tag), this.dependencies.len }); builder.count(this.name.slice(old_string_buf)); this.resolution.count(old_string_buf, *Lockfile.StringBuilder, builder); -- cgit v1.2.3