feature: sync.js - script automatique de détection, téléchargement et import des années manquantes geodvf

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-29 04:10:24 +02:00
parent e0fc56473c
commit 65de913c1d
5 changed files with 306 additions and 35 deletions

6
lib/dotenv.js Normal file
View File

@@ -0,0 +1,6 @@
import { findUpSync } from 'find-up';
import dotenv from 'dotenv';
import path from 'node:path';
const foundenv = findUpSync('.env', { cwd: path.dirname(process.argv[1]) });
dotenv.config({ path: foundenv, quiet: true });