Module: Dependabot::Deno::Helpers

Extended by:
T::Sig
Defined in:
lib/dependabot/deno/helpers.rb

Class Method Summary collapse

Class Method Details

.run_deno_command(*args, dir:) ⇒ Object



24
25
26
27
28
29
30
# File 'lib/dependabot/deno/helpers.rb', line 24

def self.run_deno_command(*args, dir:)
  Dependabot::SharedHelpers.run_shell_command(
    "deno #{args.join(' ')}",
    cwd: dir,
    env: { "DENO_DIR" => File.join(dir, ".deno_cache") }
  )
end