You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): don't error on optional deps in the lockfile (#9083)
We build a virtual tree from the lockfile before we build the ideal tree
so that we can compare the two and error if package.json differs from
what was used to build the lockfile.
The virtual tree includes optional deps in it that would otherwise be
ignored when building the ideal tree. In order not to have `npm ci` fail
in this situation we need to build the virtual tree separately, and
start clean when building the ideal tree.
This also brings in a few linting fixups.
// note: fails and crashes if we're running audit fix and there was an error
24
-
// which is a good thing, because there's no point printing all this other
25
-
// stuff in that case!
23
+
// note: fails and crashes if we're running audit fix and there was an error which is a good thing, because there's no point printing all this other stuff in that case!
0 commit comments