Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Minor nit fix on validate yaml file format script

Carlos Monastyrskifd0274657950
diff --git a/backend/scripts/validate-upgrade-path-file.ts b/backend/scripts/validate-upgrade-path-file.ts
index 934d5d822d..566300cdeb 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<void> {
}
}
-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);
+});