dhoulb / multi-semantic-release

Proof of concept that wraps semantic-release to work with monorepos.
BSD Zero Clause License
203 stars 36 forks source link

Can't find packages when `nohoist` is configured #21

Open StevenLangbroek opened 4 years ago

StevenLangbroek commented 4 years ago

Hey folks! We're running into a little issue:

We've configured nohoist to deal with some Typescript malarkey. In our root package.json, workspaces looks like this:

  "workspaces": {
    "packages": [
      "packages/core",
      "packages/react"
    ],
    "nohoist": [
      "**/react-native",
      "**/react-native/**"
    ]
  },

This leads to this error:

[multi-semantic-release]: TypeError: package.json: workspaces: Must be non-empty array of string

Should this be supported? We can work around this for now by feeding it the path of projects manually by using the programmatic API, but if you think it's something that should work I'd gladly submit a fix.

Thanks ❤️

StevenLangbroek commented 4 years ago

Ok so the fix seems pretty straightforward and I'd gladly contribute it back if you're interested in fixing this.

antongolub commented 4 years ago

@StevenLangbroek, any feedback, ideas or improvements are appreciated. Feel free to open PR as soon as you wish.

dhoulb commented 4 years ago

:tada: This issue has been resolved in version 2.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

antongolub commented 4 years ago

Misclicked when I closed the issue.