Skip to content

Commit f78451f

Browse files
author
Robert Mosolgo
authored
Merge pull request reactjs#717 from asaletnik/master
Call the yarn executable directly
2 parents 1141e3a + 12a944f commit f78451f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/generators/react/install_generator.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ def setup_react_sprockets
103103
JS
104104

105105
def setup_react_webpacker
106-
yarn_binstub = File.expand_path("./bin/yarn", ::Rails.root)
107-
`#{yarn_binstub} add react_ujs`
106+
`yarn add react_ujs`
108107
if manifest.exist?
109108
append_file(manifest, WEBPACKER_SETUP_UJS)
110109
else

0 commit comments

Comments
 (0)