From 636d996fb5edb5ae8f386c0b3b8455889a7bf78b Mon Sep 17 00:00:00 2001 From: Dougal Graham Date: Thu, 25 Jan 2024 02:41:55 +0700 Subject: [PATCH] Add pnpm-lock.yml to talismanrc (#443) * Add pnpm.lock to talismanrc test * Add pnpm.lock to the node scope * Fix pnpm lockfile name --------- Co-authored-by: Dougal Graham --- talismanrc/scopes.go | 2 +- talismanrc/talismanrc_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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": {