From 09d81cb0accf00abb77d8af5b24f5aad0b71a57a Mon Sep 17 00:00:00 2001 From: dhh Date: Sun, 21 Jan 2024 12:10:24 -0800 Subject: [PATCH] Fix escaping issue with bootstrap command Fixed #137 --- lib/install/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/install/helpers.rb b/lib/install/helpers.rb index b8837f8..dd4e974 100644 --- a/lib/install/helpers.rb +++ b/lib/install/helpers.rb @@ -21,7 +21,7 @@ def add_package_json_script(name, script, run_script=true) if using_bun? package_json = JSON.parse(File.read("package.json")) package_json["scripts"] ||= {} - package_json["scripts"][name] = script + package_json["scripts"][name] = script.gsub('\\"', '"') File.write("package.json", JSON.pretty_generate(package_json)) run %(bun run #{name}) if run_script else