Skip to content

Commit

Permalink
[Added] NPM prepare
Browse files Browse the repository at this point in the history
[finish #154004240]

Signed-off-by: Shane Lattanzio <slattanzio@pivotal.io>
  • Loading branch information
Daniil Kouznetsov authored and xtreme-shane-lattanzio committed Jan 15, 2018
1 parent 8e5a44f commit e7a0d30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/license_finder/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def current_packages
end

def clear_logs
FileUtils.rm config.log_directory if File.directory? config.log_directory
FileUtils.rmdir config.log_directory if File.directory? config.log_directory
end

def options
Expand Down
4 changes: 4 additions & 0 deletions lib/license_finder/package_managers/npm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ def self.package_management_command
'npm'
end

def self.prepare_command
'npm install'
end

def possible_package_paths
[project_path.join('package.json')]
end
Expand Down

0 comments on commit e7a0d30

Please sign in to comment.