Skip to content

Commit

Permalink
Fix escaping issue with bootstrap command
Browse files Browse the repository at this point in the history
Fixed #137
  • Loading branch information
dhh committed Jan 21, 2024
1 parent f9e6dc4 commit 09d81cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09d81cb

Please sign in to comment.