Module: Dependabot::Bun::NativeHelpers

Extended by:
T::Sig
Defined in:
lib/dependabot/bun/native_helpers.rb

Class Method Summary collapse

Class Method Details

.helper_pathObject



12
13
14
# File 'lib/dependabot/bun/native_helpers.rb', line 12

def self.helper_path
  "node #{File.join(native_helpers_root, 'run.js')}"
end

.native_helpers_rootObject



17
18
19
20
21
22
# File 'lib/dependabot/bun/native_helpers.rb', line 17

def self.native_helpers_root
  helpers_root = ENV.fetch("DEPENDABOT_NATIVE_HELPERS_PATH", nil)
  return File.join(helpers_root, "bun") unless helpers_root.nil?

  File.join(__dir__, "../../../helpers")
end