module Dependabot::NpmAndYarn::NativeHelpers

Public Class Methods

helper_path() click to toggle source
# File lib/dependabot/npm_and_yarn/native_helpers.rb, line 6
def self.helper_path
  "node #{File.join(native_helpers_root, 'run.js')}"
end
native_helpers_root() click to toggle source
# File lib/dependabot/npm_and_yarn/native_helpers.rb, line 10
def self.native_helpers_root
  helpers_root = ENV["DEPENDABOT_NATIVE_HELPERS_PATH"]
  return File.join(helpers_root, "npm_and_yarn") unless helpers_root.nil?

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