Files
90c0a7681f next-codemod(upgrade): warn peer dependencies not met (#71693)
### Why?

After the upgrade, there might be an incompatibility with the
`peerDependencies` of the existing dependencies. Therefore, we run a
check for it to warn the user at the end of the upgrade.

## Testing Plan

### Unmet Peer Dependencies with Range and Prerelease

```
pnpm test:upgrade-fixture bin/__testfixtures__/peer-dep-out-of-range
```

CLI output includes:
```
⚠ Found 2 dependencies that seem incompatible with the upgraded package versions.
You may have to update these packages to their latest version or file an issue to ask for support of the upgraded libraries.
unmet-prerelease 0.0.1
  ├── incompatible with [email protected]
  └── incompatible with [email protected]
unmet-range 0.0.1
  ├── incompatible with [email protected]
  └── incompatible with [email protected]
```

Closes NDX-382

---------

Co-authored-by: Sebastian "Sebbie" Silbermann <[email protected]>
2024-11-06 09:12:23 +09:00

14 lines
335 B
JSON

{
"name": "peer-dep-out-of-range",
"scripts": {
"dev": "next dev --turbopack"
},
"dependencies": {
"next": "15.0.0-canary.0",
"react": "19.0.0-rc-f994737d14-20240522",
"react-dom": "19.0.0-rc-f994737d14-20240522",
"unmet-prerelease": "file:./unmet-prerelease",
"unmet-range": "file:./unmet-range"
}
}