Skip to content

Commit 6653342

Browse files
Judahmeekjustin808
authored andcommitted
add yarn prefix
1 parent 604370f commit 6653342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/react_on_rails/dev_tests_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def add_yarn_relative_install_script_in_package_json
5050
package_json = File.join(destination_root, "package.json")
5151
contents = JSON.parse(File.read(package_json))
5252
contents["scripts"] ||= {}
53-
contents["scripts"]["postinstall"] = "yalc link react-on-rails"
53+
contents["scripts"]["postinstall"] = "yarn yalc link react-on-rails"
5454
File.open(package_json, "w+") { |f| f.puts JSON.pretty_generate(contents) }
5555
end
5656
end

0 commit comments

Comments
 (0)