From e3a60c19f8918c72d8fb556b52216ec8e90d6fb5 Mon Sep 17 00:00:00 2001 From: Thomas Baggaley Date: Thu, 23 Dec 2021 13:18:10 +0000 Subject: [PATCH] yarn2nix: support new yarn workspace json --- pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix b/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix index 087658fe5513..81d4a36a869c 100644 --- a/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix +++ b/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix @@ -174,7 +174,7 @@ in rec { let package = lib.importJSON packageJSON; - packageGlobs = package.workspaces; + packageGlobs = if lib.isList package.workspaces then package.workspaces else package.workspaces.packages; globElemToRegex = lib.replaceStrings ["*"] [".*"];