Skip to content

Commit

Permalink
Add pnpm-lock.yml to talismanrc (#443)
Browse files Browse the repository at this point in the history
* Add pnpm.lock to talismanrc test

* Add pnpm.lock to the node scope

* Fix pnpm lockfile name

---------

Co-authored-by: Dougal Graham <[email protected]>
  • Loading branch information
dougalg and dougalg-tw authored Jan 24, 2024
1 parent bc73c59 commit 636d996
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion talismanrc/scopes.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package talismanrc

var knownScopes = map[string][]string{
"node": {"yarn.lock", "package-lock.json", "node_modules/"},
"node": {"pnpm-lock.yaml", "yarn.lock", "package-lock.json", "node_modules/"},
"go": {"makefile", "go.mod", "go.sum", "Gopkg.toml", "Gopkg.lock", "glide.yaml", "glide.lock"},
"images": {"*.jpeg", "*.jpg", "*.png", "*.tiff", "*.bmp"},
"bazel": {"*.bzl"},
Expand Down
1 change: 1 addition & 0 deletions talismanrc/talismanrc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func TestIgnoreAdditionsByScope(t *testing.T) {
testTable := map[string][]gitrepo.Addition{
"node": {
testAddition("yarn.lock"),
testAddition("pnpm-lock.yaml"),
testAddition("package-lock.json"),
testAddition("node_modules/module1/foo.js")},
"go": {
Expand Down

0 comments on commit 636d996

Please sign in to comment.