diff options
Diffstat (limited to 'lib/license/finder/ext/yarn.rb')
| -rw-r--r-- | lib/license/finder/ext/yarn.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/license/finder/ext/yarn.rb b/lib/license/finder/ext/yarn.rb index 7a18e35..eedf435 100644 --- a/lib/license/finder/ext/yarn.rb +++ b/lib/license/finder/ext/yarn.rb @@ -5,8 +5,10 @@ module LicenseFinder INCOMPATIBLE_PACKAGE_REGEX = /(?<name>[\w,\-]+)@(?<version>(\d+\.?)+)/.freeze PHANTOM_PACKAGE_REGEX = /workspace-aggregator-[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12}/.freeze - def possible_package_paths - [project_path.join('yarn.lock')] + def active? + return if project_path.to_path.include?('/node_modules/') + + project_path.join('yarn.lock').exist? end def prepare |
