I'm working on a project where dependencies version are not strictly fixed (using the ^), like so:
...
"dependencies": {
"react": "^16.13.1",
"react-dom": "^16.13.1"
}
...
Now, I'd like to strictly fix all version (remove the ^) but I'd like to keep the version actually installed (and saved in yarn.lock) at the moment and write it to package.json.
For example, for react: ^16.13.1, installed version is 16.14.0.
So I'd like my package.json to be:
...
"dependencies": {
"react": "16.14.0",
"react-dom": "16.14.0"
}
...
Is there a command to do this automatically?