Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cna): pin dependency versions (#56177)
### What? This PR is pinning the installed versions of dependencies in `create-next-app` ### Why? Currently, we write `latest` to `package.json`, ### How? As far as I can tell, there is no way to update the `package.json` file based on the lockfile (which does have the information needed). Major versions are bumped less frequently, so this should be fine to update manually. Other alternatives would be: - return to the previous way of running `npm i --save` and `npm i --save-dev` instead (ref: #55730). This might be slightly slower than one `npm i` pass though. - fetch the latest versions of each package from the registry. Might be even slower NOTE: The user has always the alternative to update the versions to their desired ones afterward. Fixes #56174
- Loading branch information