Skip to content

Commit

Permalink
Revert using Rails task for yarn
Browse files Browse the repository at this point in the history
Better that we zero out having yarn:install added to assets:precompile.
  • Loading branch information
dhh committed Nov 17, 2021
1 parent 27b7a65 commit ee54efd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/jsbundling/build.rake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace :javascript do
desc "Build your JavaScript bundle"
task build: [ "yarn:install" ] do
unless system "yarn build"
task :build do
unless system "yarn install && yarn build"
raise "jsbundling-rails: Command build failed, ensure yarn is installed and `yarn build` runs without errors"
end
end
Expand Down

0 comments on commit ee54efd

Please sign in to comment.