Add ARCHITECTURE.md (layers, flows, folder map, glossary), CONTRIBUTING.md (setup and step-by-step recipes) and a README in each main folder, with an index of docs/. Convert the 511 JavaScript headers from "// Rôle :" lines to JSDoc @file blocks, define a three-level header template in website/AGENTS.md and check the header in tests/file-headers.test.mjs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
279 B
JavaScript
13 lines
279 B
JavaScript
/**
|
|
* @file Charge le fichier .env facultatif avec le parseur natif de Node.
|
|
*/
|
|
|
|
import { loadEnvFile } from "node:process";
|
|
|
|
export function loadProjectEnv(file = ".env") {
|
|
try {
|
|
loadEnvFile(file);
|
|
} catch (error) {
|
|
if (error.code !== "ENOENT") throw error;
|
|
}
|
|
}
|