diff options
Diffstat (limited to 'lib/license/finder/ext/npm.rb')
| -rw-r--r-- | lib/license/finder/ext/npm.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/license/finder/ext/npm.rb b/lib/license/finder/ext/npm.rb index 59244c9..59ae24c 100644 --- a/lib/license/finder/ext/npm.rb +++ b/lib/license/finder/ext/npm.rb @@ -2,8 +2,10 @@ module LicenseFinder class NPM - def possible_package_paths - [project_path.join('package.json')] + def active? + return if project_path.to_path.include?('/node_modules/') + + project_path.join('package.json').exist? end def prepare |
