mskelton/yarn-plugin-outdated

Error when dependency package is not published

durchanek opened this issue · 0 comments

Hello and thank you for the great plugin! I have a monorepo setup where one of the packages is a component library loaded by other packages. It is set as private with no repository URL, however the plugin still tries to check for an update:

% yarn outdated
➤ YN0000: ┌ Checking for outdated dependencies
➤ YN0001: │ HTTPError: Response code 404 (Not Found)
    at se.<anonymous> (/Users/lada/Projects/flare-crm/.yarn/releases/yarn-berry.cjs:23:10082)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
➤ YN0000: └ Completed
➤ YN0000: Failed with errors in 0s 199ms
➤ YN0000: ⠏ =============================================================================---

When I added some logging to yarn-berry.cjs, the failing URL request was

requestUrl: 'https://registry.yarnpkg.com/<my-dependency's-name>'

Temporarily removing the dependency from package.json solved the issue, but it would be much smoother if the plugin could just skip it.