Skip to content

Commit 09d81cb

Browse files
author
dhh
committed
Fix escaping issue with bootstrap command
Fixed #137
1 parent f9e6dc4 commit 09d81cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/install/helpers.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def add_package_json_script(name, script, run_script=true)
2121
if using_bun?
2222
package_json = JSON.parse(File.read("package.json"))
2323
package_json["scripts"] ||= {}
24-
package_json["scripts"][name] = script
24+
package_json["scripts"][name] = script.gsub('\\"', '"')
2525
File.write("package.json", JSON.pretty_generate(package_json))
2626
run %(bun run #{name}) if run_script
2727
else

0 commit comments

Comments
 (0)