You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 11, 2020. It is now read-only.
It's rather tedious that you have to re-run the tester every time you fix a version mismatch.
I "hacked" my local installation with something like this:
function checkTypeScriptVersions(allPackages) {
const violations = [];
for (const pkg of allPackages.allTypings()) {
for (const dep of allPackages.allDependencyTypings(pkg)) {
if (dep.minTypeScriptVersion > pkg.minTypeScriptVersion) {
violations.push({
dep,
pkg,
});
}
}
}
if (violations.length === 0) {
return;
}
throw new Error(
violations.map(
({ pkg, dep }) =>
`${pkg.desc} depends on ${dep.desc} but has a lower required TypeScript version (${dep.minTypeScriptVersion} > ${pkg.minTypeScriptVersion}).`,
)
.join('\n'),
);
}