fix bug when no workspaces in package.json

This commit is contained in:
DavHau 2022-02-27 00:50:57 +07:00
parent a9f9eaad2a
commit 0ba71a6d1b

View File

@ -46,7 +46,7 @@ let
packageJson = tree.files."package.json".jsonContent;
in
l.flatten
(l.forEach packageJson.workspaces
(l.forEach (packageJson.workspaces or [])
(glob:
let
workspacePaths = getWorkspacePaths glob tree;