jscpd
jscpd copied to clipboard
does not run with yarn berry plug and play
Describe the bug
using this package with yarn berry yields:
Error: @jscpd/html-reporter tried to access @jscpd/finder, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Required package: @jscpd/finder
Required by: @jscpd/html-reporter@npm:3.4.5 (via /path/to/project/.yarn/cache/@jscpd-html-reporter-npm-3.4.5-316e394113-91619da791.zip/node_modules/@jscpd/html-reporter/dist/)
To Reproduce Steps to reproduce the behavior:
- project with yarn berry (plug and play linker)
- add it locally:
yarn add -D jscpd
- run
yarn jscpd
Expected behavior
dependencies should be properly declared in the package
workaround:
in your .yarnrc.yml
add this:
packageExtensions:
"@jscpd/html-reporter@*":
dependencies:
"@jscpd/finder": "*"
Thank you for the report, will fix