Notify the user when we modified the package versions

This commit is contained in:
Sander Declerck 2025-11-13 17:10:22 +01:00
parent dc6f37b3ec
commit 59fa76a42f
No known key found for this signature in database
3 changed files with 26 additions and 0 deletions

View file

@ -72,6 +72,19 @@ export async function main(args) {
);
}
if (proxy.hasSuppressedVersions()) {
ui.writeInformation(
`${chalk.yellow(
""
)} Safe-chain: Some package versions were suppressed due to minimum age requirement.`
);
ui.writeInformation(
` To disable this check, use: ${chalk.cyan(
"--safe-chain-skip-minimum-package-age"
)}`
);
}
// Returning the exit code back to the caller allows the promise
// to be awaited in the bin files and return the correct exit code
return packageManagerResult.status;