Skip to content

Commit

Permalink
jets upgrade: only update bin/webpacker if exist
Browse files Browse the repository at this point in the history
  • Loading branch information
tongueroo committed Jan 19, 2019
1 parent 26cea30 commit 621b304
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/jets/commands/upgrade.rb
Expand Up @@ -108,6 +108,7 @@ def remove_ruby_lazy_load_for(path)
end

def update_webpack_binstubs
return unless File.exist?("bin/webpack")
lines = IO.readlines("bin/webpack")
already_upgraded = lines.detect { |l| l =~ /WebpackRunner/ }
return if already_upgraded
Expand Down

0 comments on commit 621b304

Please sign in to comment.