From 017a3a5f74d8da13bf2ce3a2bf7941de6db46e39 Mon Sep 17 00:00:00 2001
From: Michael Kriese <michael.kriese@visualon.de>
Date: Thu, 14 Apr 2022 19:05:42 +0200
Subject: [PATCH] fix(manager:npm): write updated lockfile before calling yarn
 (#15119)

---
 lib/modules/manager/npm/post-update/index.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/modules/manager/npm/post-update/index.ts b/lib/modules/manager/npm/post-update/index.ts
index cfc65066dc..5552c277de 100644
--- a/lib/modules/manager/npm/post-update/index.ts
+++ b/lib/modules/manager/npm/post-update/index.ts
@@ -255,7 +255,7 @@ export async function writeUpdatedPackageFiles(
     return;
   }
   const { localDir } = GlobalConfig.get();
-  const supportedLockFiles = ['package-lock.json'];
+  const supportedLockFiles = ['package-lock.json', 'yarn.lock'];
   for (const packageFile of config.updatedPackageFiles) {
     if (packageFile.type !== 'addition') {
       continue;
-- 
GitLab