v0.5.4 - Fix lockstep versioning and update all packages
This commit is contained in:
@@ -286,8 +286,10 @@ export async function main(args: string[]): Promise<void> {
|
||||
}
|
||||
|
||||
// Run as CLI if invoked directly
|
||||
// Run main function when executed directly
|
||||
main(process.argv.slice(2)).catch((err) => {
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
});
|
||||
// Only run if this is the main module (not imported)
|
||||
if (import.meta.url === `file://${process.argv[1]}`) {
|
||||
main(process.argv.slice(2)).catch((err) => {
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user