FIX: Don't swallow an error if we can't run `yarn ember build`

This commit is contained in:
Robin Ward 2021-08-06 15:01:55 -04:00
parent 09ad3ed41d
commit 3fdb64184b
1 changed files with 9 additions and 1 deletions

View File

@ -229,7 +229,15 @@ def copy_ember_cli_assets
assets = {}
files = {}
system("yarn --cwd #{ember_dir} run ember build -prod")
unless system("yarn --cwd #{ember_dir} install")
STDERR.puts "Error running yarn install"
exit 1
end
unless system("yarn --cwd #{ember_dir} run ember build -prod")
STDERR.puts "Error running ember build"
exit 1
end
# Copy assets and generate manifest data
Dir["#{ember_cli_assets}**/*"].each do |f|