Closed cspotcode closed 4 years ago
Thanks for the super thorough and clear bug report..that is rare!
I wasn't able to repro with yarn berry:
Nonetheless, I'll deploy with the dependency & see if that resolves it :)
:tada: This PR is included in version 2.8.6 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Please let me know if this is still an issue. Thanks again!
@all-contributors please add @cspotcode for bug
@protoEvangelion
I've put up a pull request to add @cspotcode! :tada:
Version number In which version does the bug appear?
2.8.5
Describe the bug
gh
depends onfluture-sanctuary-types
, which declares a peerDependency onsanctuary-def
. However,gh
does not declare a dependency onsanctuary-def
, so the required dependency is missing. This conveniently works only if the dependency is hoisted fromsanctuary
, but that doesn't always happen. It fails when running under yarn 2.https://github.com/node-gh/gh/blob/master/package.json#L159-L173 https://github.com/fluture-js/fluture-sanctuary-types/blob/master/package.json#L44
https://github.com/sanctuary-js/sanctuary/blob/master/package.json#L17
To fix
Add a dependency on sanctuary-def:
To Reproduce
Use
yarn dlx
to rungh
.yarn dlx
is akin tonpx
.Expected behavior
gh
is compatible with tools likeyarn dlx
and `npmLog
Additional context