yarn2nix: support new yarn workspace json

This commit is contained in:
Thomas Baggaley 2021-12-23 13:18:10 +00:00 committed by tomberek
parent 3c745c05fb
commit e3a60c19f8

View File

@ -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 ["*"] [".*"];