Replies: 1 comment
-
There is no built-in way to do that, but it can be done with a plugin:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have quite a strict corporate policy on fetching new package versions - some packages can be upgraded to the latest version but many require explicit approval before we're able to fetch them from our internal mirror package repo. The repo responds with a 403 for any non-approved package, which is a real problem for projects using
yarn
because the installation aborts at the first download failure.When trying to update from one version of large third-party packages to another, there can be hundreds of dependencies that need to be updated, each of which currently requires us to seek approval before we can proceed to getting the next error. Essentially what happens is:
yarn install
tries to get all the new dependencies, fails on new version of dependency Ayarn install
then fails on dependency BHow can I generate a list or a new yarn.lock file containing the resolved versions of ALL dependencies, without actually trying to fetch any of them from the repository? I want to know what all the new versions are going to be so that I can send one list to the security team for approval.
yarn install --mode update-lockfile
(with and without--refresh-lockfile
) does not work because it tries to fetch the .tgz file for each package, which is what's blocked.Using yarn 4.6.0
Beta Was this translation helpful? Give feedback.
All reactions