Skip to content

Commit

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

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

isGeneratedYarnPlugNPlay() {
return /(^|\/)\.pnp\..*$/.test(this.name);
}
@@ -492,6 +496,7 @@ class Generated {
|| this.isEsyLock()
|| this.isNpmShrinkwrapOrPackageLock()
|| this.isTerraformLock()
|| this.isYarnLock()
|| this.isGeneratedYarnPlugNPlay()
|| this.isGodeps()
|| this.isGeneratedByZephir()

0 comments on commit cf50f2a

Please sign in to comment.