Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
#!/usr/bin/env ruby
# frozen_string_literal: true
require "fileutils"
# rubocop:disable Discourse/NoChdir
Dir.chdir("#{__dir__}/../app/assets/javascripts") do
FileUtils.rm("yarn-ember5.lock")
FileUtils.cp("yarn-ember3.lock", "yarn-ember5.lock")
system("#{__dir__}/switch_ember_version", "5", exception: true)
system "yarn install", exception: true
system("#{__dir__}/switch_ember_version", "3", exception: true)
end