| import { syncLocalToSupabase } from './persistence' | |
| export async function runSync() { | |
| return syncLocalToSupabase() | |
| } | |
| if (require.main === module) { | |
| runSync().then(r => { | |
| console.log('Sync result', r) | |
| process.exit(0) | |
| }).catch(e => { | |
| console.error('Sync failed', e) | |
| process.exit(1) | |
| }) | |
| } | |