From cba14c82831fa7ba77db84a36f6097e733d9f240 Mon Sep 17 00:00:00 2001 From: Dougal Graham Date: Fri, 5 Jan 2024 17:39:05 +0700 Subject: [PATCH] Fix pnpm lockfile name --- talismanrc/scopes.go | 2 +- talismanrc/talismanrc_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/talismanrc/scopes.go b/talismanrc/scopes.go index dedd8c28..18da1258 100644 --- a/talismanrc/scopes.go +++ b/talismanrc/scopes.go @@ -1,7 +1,7 @@ package talismanrc var knownScopes = map[string][]string{ - "node": {"pnpm.lock", "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 80f6791d..251f1fe3 100644 --- a/talismanrc/talismanrc_test.go +++ b/talismanrc/talismanrc_test.go @@ -90,7 +90,7 @@ func TestIgnoreAdditionsByScope(t *testing.T) { testTable := map[string][]gitrepo.Addition{ "node": { testAddition("yarn.lock"), - testAddition("pnpm.lock"), + testAddition("pnpm-lock.yaml"), testAddition("package-lock.json"), testAddition("node_modules/module1/foo.js")}, "go": {