diff --git a/scripts/build-timeseries-files.ts b/scripts/build-timeseries-files.ts index fb0a80fc..7884c066 100644 --- a/scripts/build-timeseries-files.ts +++ b/scripts/build-timeseries-files.ts @@ -52,6 +52,10 @@ type TimeseriesIndex = { summary?: unknown; } >; + schema: { + version: number; + generatedAt: string; + }; }; const ROOT = process.cwd(); @@ -260,6 +264,10 @@ async function main() { const out: TimeseriesIndex = { byPathway, byDataset, + schema: { + version: 1, + generatedAt: new Date().toISOString(), + }, }; // ------------------------------- diff --git a/src/data/index.gen.ts b/src/data/index.gen.ts index 02dd55b7..e8fec65b 100644 --- a/src/data/index.gen.ts +++ b/src/data/index.gen.ts @@ -50,5 +50,9 @@ export const index: TimeseriesIndex = { path: "/data/asean-centre-for-energy/BAS-2024_timeseries.csv", }, }, + schema: { + version: 1, + generatedAt: "2025-11-05T14:23:08.770Z", + }, } as const; export default index; diff --git a/tsconfig.node.json b/tsconfig.node.json index 4c78e2b0..8a38451b 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -16,6 +16,7 @@ "vitest.config.ts", "postcss.config.ts", "tailwind.config.ts", - "src/utils/*.ts" + "src/utils/*.ts", + "src/data/index.gen.ts" ] }