Skip to content

findWorkspaces function fails if a sub-directory contains no package.json file #4

@kranthie-sap

Description

@kranthie-sap

We have a yarn workspaces setup that looks like this:

"workspaces": {
    "packages": [
      "packages/abcApps/*",
      "packages/xyzApps/*"
    ]
  },

In each of the abcApps and xyzApps, there are some directories with valid workspaces with package.json files and there are folders like docs, manualTests etc. that don't contain a package.json file.

The findWorkspaces function seems to throw an error when processing the docs and manualTests directories.

I would like to know if this is something you would support. I can create a PR for it. Thanks for this useful module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions