Sha256: 60f63e2c0d1fcd4f3202cabaf0b14d6d861bd934b417674ac258323b108c3dc9

Contents?: true

Size: 684 Bytes

Versions: 17

Compression:

Stored size: 684 Bytes

Contents

# frozen_string_literal: true

module Dependabot
  module NpmAndYarn
    module NativeHelpers
      def self.npm_helper_path
        File.join(npm_helpers_dir, "bin/run.js")
      end

      def self.npm_helpers_dir
        File.join(native_helpers_root, "npm_and_yarn/helpers/npm")
      end

      def self.yarn_helper_path
        File.join(yarn_helpers_dir, "bin/run.js")
      end

      def self.yarn_helpers_dir
        File.join(native_helpers_root, "npm_and_yarn/helpers/yarn")
      end

      def self.native_helpers_root
        default_path = File.join(__dir__, "../../../..")
        ENV.fetch("DEPENDABOT_NATIVE_HELPERS_PATH", default_path)
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
dependabot-npm_and_yarn-0.93.0 lib/dependabot/npm_and_yarn/native_helpers.rb
dependabot-npm_and_yarn-0.92.8 lib/dependabot/npm_and_yarn/native_helpers.rb
dependabot-npm_and_yarn-0.92.7 lib/dependabot/npm_and_yarn/native_helpers.rb
dependabot-npm_and_yarn-0.92.6 lib/dependabot/npm_and_yarn/native_helpers.rb
dependabot-npm_and_yarn-0.92.5 lib/dependabot/npm_and_yarn/native_helpers.rb
dependabot-npm_and_yarn-0.92.4 lib/dependabot/npm_and_yarn/native_helpers.rb
dependabot-npm_and_yarn-0.92.3 lib/dependabot/npm_and_yarn/native_helpers.rb
dependabot-npm_and_yarn-0.92.2 lib/dependabot/npm_and_yarn/native_helpers.rb
dependabot-npm_and_yarn-0.91.8 lib/dependabot/npm_and_yarn/native_helpers.rb
dependabot-npm_and_yarn-0.91.7 lib/dependabot/npm_and_yarn/native_helpers.rb
dependabot-npm_and_yarn-0.91.6 lib/dependabot/npm_and_yarn/native_helpers.rb
dependabot-npm_and_yarn-0.91.5 lib/dependabot/npm_and_yarn/native_helpers.rb
dependabot-npm_and_yarn-0.91.4 lib/dependabot/npm_and_yarn/native_helpers.rb
dependabot-npm_and_yarn-0.91.3 lib/dependabot/npm_and_yarn/native_helpers.rb
dependabot-npm_and_yarn-0.91.2 lib/dependabot/npm_and_yarn/native_helpers.rb
dependabot-npm_and_yarn-0.91.1 lib/dependabot/npm_and_yarn/native_helpers.rb
dependabot-npm_and_yarn-0.91.0 lib/dependabot/npm_and_yarn/native_helpers.rb