Run yarn install in template dir

We want to yarn install in the template dir so that templates get a
yarn.lock copied over.
This commit is contained in:
John Hawthorn 2019-11-14 16:30:05 -08:00
parent 50a402b741
commit 844870038e
1 changed files with 1 additions and 0 deletions

View File

@ -541,6 +541,7 @@ Module.new do
FileUtils.cp_r("#{assets_path}/config/webpack", "#{app_template_path}/config/webpack")
FileUtils.ln_s("#{assets_path}/node_modules", "#{app_template_path}/node_modules")
FileUtils.chdir(app_template_path) do
sh "yarn install"
sh "bin/rails webpacker:binstubs"
end