We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e308e76 + 5d00432 commit 531a39bCopy full SHA for 531a39b
lib/install/bun/.gitattributes
@@ -0,0 +1,2 @@
1
+# See https://bun.sh/docs/install/lockfile
2
+*.lockb diff=lockb
lib/install/bun/install.rb
@@ -18,3 +18,11 @@
18
package_json["scripts"] ||= {}
19
package_json["scripts"]["build"] = "bun bun.config.js"
20
File.write("package.json", JSON.pretty_generate(package_json))
21
+
22
+say "Add ability to diff lockb to .gitattributes"
23
+if Rails.root.join(".gitattributes").exist?
24
+ append_to_file ".gitattributes", "\n# See https://bun.sh/docs/install/lockfile\n*.lockb diff=lockb\n"
25
+else
26
+ copy_file "#{__dir__}/.gitattributes", ".gitattributes"
27
+end
28
+say %(Run `git config diff.lockb.textconv bun && git config diff.lockb.binary true` to enable pretty diffs for Bun's .lockb file), :green
0 commit comments