Include specific versions of jlab packages in the yarn resolution key of package.json #5958
Labels
status:resolved-locked
Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Milestone
Especially with prerelease js packages, npm (and hence yarn) can end up with multiple versions of a package since the npm
^x.y.z
does not include any packages on thenext
tag. We're seeing this in ipywidgets, where the base ipywidgets package can work with a number of jlab versions (including the prerelease version, but the yarn resolution algorithm doesn't count that prerelease when you have such a large range of acceptable versions), however in a prerelease we want to certainly pin the version to the prerelease js version.So it may be useful to pin the versions of the js packages using the yarn
resolution
key in the staging (and dev-mode) package.json to be the exact version we want.As a simplified example, the base widget package has a dependency on services
1||2||3||4.alpha.0
, but that means the yarn resolution algorithm picks version 3 instead of version 4.alpha.0, since 3 is thelatest
tagged release.The text was updated successfully, but these errors were encountered: