Class: Dependabot::NpmAndYarn::DependencyGrapher
- Inherits:
-
DependencyGraphers::Base
- Object
- DependencyGraphers::Base
- Dependabot::NpmAndYarn::DependencyGrapher
show all
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/npm_and_yarn/dependency_grapher.rb,
lib/dependabot/npm_and_yarn/dependency_grapher/lockfile_generator.rb
Defined Under Namespace
Classes: LockfileGenerator
Instance Method Summary
collapse
Instance Method Details
#prepare! ⇒ Object
26
27
28
29
30
31
32
33
|
# File 'lib/dependabot/npm_and_yarn/dependency_grapher.rb', line 26
def prepare!
if lockfile.nil?
Dependabot.logger.info("No lockfile found, generating ephemeral lockfile for dependency graphing")
generate_ephemeral_lockfile!
emit_missing_lockfile_warning!
end
super
end
|
#relevant_dependency_file ⇒ Object
20
21
22
23
|
# File 'lib/dependabot/npm_and_yarn/dependency_grapher.rb', line 20
def relevant_dependency_file
lockfile || package_json
end
|