From 52227131b8a3c701331f1fc19b4e7aa7b2b9c5c2 Mon Sep 17 00:00:00 2001 From: Nick Novitski Date: Tue, 10 Oct 2023 08:19:45 -0700 Subject: [PATCH] Remove references to lockfileFilename This field will be removed from yarn in version 4: https://github.com/yarnpkg/berry/pull/5604 With this change, the plugin works with the current canary release, v4.0.0-rc.53. --- src/generate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generate.ts b/src/generate.ts index 0f4558d..65e8e68 100644 --- a/src/generate.ts +++ b/src/generate.ts @@ -93,7 +93,7 @@ export default async ( "./" + ppath.relative( ppath.dirname(nixExprPath), - ppath.resolve(cwd, configuration.get(`lockfileFilename`)) + ppath.resolve(cwd, 'yarn.lock' as PortablePath) ); // Build a list of cache entries so Nix can fetch them.