From f165f98cf78b3e20e052f17358c22bc9d1b8a264 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 20 May 2021 14:30:22 -0400 Subject: [PATCH] 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. --- bin/ember-cli | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/ember-cli b/bin/ember-cli index 3aa799e1432..1395ecc9241 100755 --- a/bin/ember-cli +++ b/bin/ember-cli @@ -43,4 +43,5 @@ if !args.include?("--proxy") args << PROXY end +system "yarn install --cwd #{yarn_dir}" exec "yarn", *args.to_a.flatten