DEV: Run yarn install when running bin/ember-cli (#13102)

Some people have noticed that if we change the packages in package.json
that they have to manually run `yarn install` or Discourse won't work.

This adds `yarn install` to the `bin/ember-cli` helper we run. It seems
quite fast if there is nothing to install so it shouldn't hurt to do
this every time we start the server.
This commit is contained in:
Robin Ward 2021-05-20 14:30:22 -04:00 committed by GitHub
parent e1b99d3cad
commit f165f98cf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,4 +43,5 @@ if !args.include?("--proxy")
args << PROXY
end
system "yarn install --cwd #{yarn_dir}"
exec "yarn", *args.to_a.flatten