Function createCheckPackageWithWorkspaces