yarn resolution warnings
yarn run setup currently reports various warnings in the resolution step.
They can be grouped in the following categories:
- missing peerDependencies (
YN0002) in digitransit-ui or digitransit-ui-components - missing peerDependencies (
YN0002) in hsl components - missing peerDependencies (
YN0002) in third party components - not-satisfying versions provided (
YN0060)
I suggest the following actions to resolve these warnings:
- fix declared peerDependencies in digitransit-ui or digitransit-ui-components
- fix declared peerDependencies in hsl-fi packages and upgrade digitransit-ui to updated versions
- As temporary fix, add missing peerDependencies as packageExtensions to
.yarnrc.ymland mid-term upgrade concerned packages (assuming they are fixed in the meantime, otherwise suggest fixes there) - check and correct versions. IMHO most clashes are caused by fixed versions in package.json, where rather ranges should be specified.
I'll provide a PR for 1., 3. and 4. @vesameskanen could anyone from HSL address the hsl-fi changes? Otherwise I'd add (at least temporarilly) packageExtensions.
I can try to fix hsl.fi related warnings.
I wonder what is the proper fix for workspace related warnings. For example, all sub components of digitransit-component library give a warning that digitransit-component does not provide i18next, but I guess that is intentional. The mentioned library is provided by the root package.json.
peerDeependencies need to be defined not only on the top-level project, but by it's components as well. #4751 fixes these.