FIX: Don't swallow an error if we can't run `yarn ember build`
This commit is contained in:
parent
09ad3ed41d
commit
3fdb64184b
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue