diff --git a/backend/scripts/validate-upgrade-path-file.ts b/backend/scripts/validate-upgrade-path-file.ts index 934d5d822..566300cde 100644 --- a/backend/scripts/validate-upgrade-path-file.ts +++ b/backend/scripts/validate-upgrade-path-file.ts @@ -101,11 +101,7 @@ async function validateUpgradePathConfig(): Promise { } } -if (require.main === module) { - validateUpgradePathConfig().catch((error) => { - console.error("Unexpected error:", error); - process.exit(1); - }); -} - -export { validateUpgradePathConfig }; +validateUpgradePathConfig().catch((error) => { + console.error("Unexpected error:", error); + process.exit(1); +});