Skip to content

Commit

Permalink
add yarn (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 authored Feb 11, 2025
1 parent c387f26 commit a291052
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/generated.js
Original file line number Diff line number Diff line change
@@ -240,8 +240,12 @@ class Generated {
return (/npm-shrinkwrap\.json/.test(this.name) || /package-lock\.json/.test(this.name));
}

isYarn() {
return /\.yarn\/(releases|plugins)\/.*/.test(this.name);
}

isYarnLock() {
return this.name === 'yarn.lock';
return /yarn\.lock/.test(this.name);
}

isPnpmLock() {
@@ -504,6 +508,7 @@ class Generated {
|| this.isEsyLock()
|| this.isNpmShrinkwrapOrPackageLock()
|| this.isTerraformLock()
|| this.isYarn()
|| this.isYarnLock()
|| this.isPnpmLock()
|| this.isGeneratedYarnPlugNPlay()

0 comments on commit a291052

Please sign in to comment.