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