Skip to content

Commit

Permalink
Merge pull request #1 from instrumentl/chore/override-root
Browse files Browse the repository at this point in the history
chore: allow overriding root path with $EMBER_CLI_ROOT
  • Loading branch information
Roguelazer authored Dec 19, 2024
2 parents 2b9830d + a27e48f commit 2c04868
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ember_cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ def compile!
end

def root
@root ||= Rails.root.join("tmp", "ember-cli").tap(&:mkpath)
@root ||= if ENV["EMBER_CLI_ROOT"].present?
Pathname.new(ENV["EMBER_CLI_ROOT"])
else
Rails.root.join("tmp", "ember-cli")
end.tap(&:mkpath)
end

def env
Expand Down

0 comments on commit 2c04868

Please sign in to comment.