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
I've inherited a repo that uses loose version specifiers (^ and ~). Given the type of project, it'd be better to have exact versions pinned in package.json file for visibility and consistency.
The problem is that, due to SemVer rules, the lock file may have a higher version installed than the one declared in package.json.
Is there a way to pin all deps to the exact version specified in lock file in one swoop?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've inherited a repo that uses loose version specifiers (
^
and~
). Given the type of project, it'd be better to have exact versions pinned inpackage.json
file for visibility and consistency.The problem is that, due to SemVer rules, the lock file may have a higher version installed than the one declared in
package.json
.Is there a way to pin all deps to the exact version specified in lock file in one swoop?
Beta Was this translation helpful? Give feedback.
All reactions