yarn2nix: support new yarn workspace json

This commit is contained in:
Thomas Baggaley
2022-03-05 00:27:42 -05:00
committed by tomberek
parent 3c745c05fb
commit e3a60c19f8
@@ -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 ["*"] [".*"];