square / find-yarn-workspace-root

Algorithm for finding the root of a yarn workspace, extracted from yarnpkg.com
Apache License 2.0
49 stars 8 forks source link

Allow new `manifest.workspaces.packages` structure #10

Closed klaasman closed 6 years ago

klaasman commented 6 years ago

As introduced here: https://yarnpkg.com/blog/2018/02/15/nohoist/

Workspaces can now be formatted as:

{
  "workspaces": {
    "packages": [/* ... */],
    "nohoist": [/* ... */]
  }
}

The old workspaces format will continue to be supported.

eventualbuddha commented 6 years ago

Thanks! We should add tests to this before merging.

klaasman commented 6 years ago

It actually caught an unforeseen error 👍

eventualbuddha commented 6 years ago

@thetimothyp @lennyburdette want to take it from here?

lennyburdette commented 6 years ago

@klaasman Thank you!