diff --git a/talismanrc/scopes.go b/talismanrc/scopes.go index 6129eb67..18da1258 100644 --- a/talismanrc/scopes.go +++ b/talismanrc/scopes.go @@ -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"}, diff --git a/talismanrc/talismanrc_test.go b/talismanrc/talismanrc_test.go index de2dea02..251f1fe3 100644 --- a/talismanrc/talismanrc_test.go +++ b/talismanrc/talismanrc_test.go @@ -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": {