From 6ec7e93511cf3e600d16565722f023530f4158ac Mon Sep 17 00:00:00 2001 From: Alex Axthelm Date: Thu, 6 Nov 2025 11:01:35 +0100 Subject: [PATCH 1/4] fix(types): do not include schema object in index type --- scripts/build-timeseries-files.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/build-timeseries-files.ts b/scripts/build-timeseries-files.ts index fb0a80fc..a3a7313b 100644 --- a/scripts/build-timeseries-files.ts +++ b/scripts/build-timeseries-files.ts @@ -12,7 +12,7 @@ // - label := label | name // // Output: -// - Writes src/data/index.json with { byPathway, byDataset, schema }. +// - Writes src/data/index.json with { byPathway, byDataset }. import { promises as fs } from "node:fs"; import * as path from "node:path"; @@ -414,7 +414,6 @@ async function main() { export type TimeseriesIndex = { byPathway: Record; byDataset: Record; - schema: { version: number; generatedAt: string }; }; export const index: TimeseriesIndex = ${JSON.stringify(out, null, 2)} as const; export default index; From adb5426f03f9b70d874806125401fe760f1f6ad6 Mon Sep 17 00:00:00 2001 From: Alex Axthelm Date: Thu, 6 Nov 2025 11:02:30 +0100 Subject: [PATCH 2/4] chore(data): regenerate timeseries index --- src/data/index.gen.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/data/index.gen.ts b/src/data/index.gen.ts index 02dd55b7..24c95ed3 100644 --- a/src/data/index.gen.ts +++ b/src/data/index.gen.ts @@ -18,7 +18,6 @@ export type TimeseriesIndex = { summary?: unknown; } >; - schema: { version: number; generatedAt: string }; }; export const index: TimeseriesIndex = { byPathway: { From 2e423118fd429faa3adc268f23a3dc9846b86863 Mon Sep 17 00:00:00 2001 From: Alex Axthelm Date: Thu, 6 Nov 2025 11:02:55 +0100 Subject: [PATCH 3/4] ci(typescript): Allow node TS config to parse index --- tsconfig.node.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tsconfig.node.json b/tsconfig.node.json index 4c78e2b0..0a7a234b 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -8,7 +8,9 @@ "isolatedModules": true, "noEmit": true, "strict": true, - "allowSyntheticDefaultImports": true + "allowSyntheticDefaultImports": true, + "composite": true, + "tsBuildInfoFile": ".tsbuildcache/node.tsbuildinfo" }, "include": [ "vite.config.ts", @@ -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 69923174ea6413dc373e1bde0f7b4fefbbe0a255 Mon Sep 17 00:00:00 2001 From: Alex Axthelm Date: Thu, 6 Nov 2025 11:03:10 +0100 Subject: [PATCH 4/4] test(index): remove schema from timeseries index tests --- src/utils/timeseriesIndex.test.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/utils/timeseriesIndex.test.ts b/src/utils/timeseriesIndex.test.ts index 270fcb31..b485124c 100644 --- a/src/utils/timeseriesIndex.test.ts +++ b/src/utils/timeseriesIndex.test.ts @@ -25,7 +25,6 @@ describe("timeseriesIndex helpers", () => { path: "/data/BAS-2024_timeseries.json", }, }, - schema: { version: 1, generatedAt: new Date().toISOString() }, }; expect(datasetsForPathway(idx, "ACE-BAS-2024")).toEqual([