From a19cbc12ed10696abdbdbb0deda6b3ee56e184df Mon Sep 17 00:00:00 2001 From: Jackson Hoffart Date: Wed, 5 Nov 2025 14:25:38 +0000 Subject: [PATCH 1/3] fix(types): add schema property to TimeseriesIndex --- scripts/build-timeseries-files.ts | 8 ++++++++ src/data/index.gen.ts | 4 ++++ 2 files changed, 12 insertions(+) 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; From 07a04e596d6d3592b26f878baf43184c62828783 Mon Sep 17 00:00:00 2001 From: Jackson Hoffart Date: Wed, 5 Nov 2025 14:46:23 +0000 Subject: [PATCH 2/3] chore: add index.gen.ts to ts node config --- tsconfig.node.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tsconfig.node.json b/tsconfig.node.json index 4c78e2b0..bcfec731 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -1,7 +1,9 @@ { "compilerOptions": { "target": "ES2022", - "lib": ["ES2022"], + "lib": [ + "ES2022" + ], "module": "ESNext", "skipLibCheck": true, "moduleResolution": "bundler", @@ -16,6 +18,7 @@ "vitest.config.ts", "postcss.config.ts", "tailwind.config.ts", - "src/utils/*.ts" + "src/utils/*.ts", + "src/data/index.gen.ts" ] } From cbf32e0f4ac2157abac3defccd1a747953e520ea Mon Sep 17 00:00:00 2001 From: Jackson Hoffart Date: Wed, 5 Nov 2025 14:46:51 +0000 Subject: [PATCH 3/3] prettier --write . --- tsconfig.node.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tsconfig.node.json b/tsconfig.node.json index bcfec731..8a38451b 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -1,9 +1,7 @@ { "compilerOptions": { "target": "ES2022", - "lib": [ - "ES2022" - ], + "lib": ["ES2022"], "module": "ESNext", "skipLibCheck": true, "moduleResolution": "bundler",