Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions scripts/build-timeseries-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -414,7 +414,6 @@ async function main() {
export type TimeseriesIndex = {
byPathway: Record<string, TimeseriesIndexItem[]>;
byDataset: Record<string, { datasetId: string; pathwayIds: string[]; label?: string; path: string; summary?: unknown }>;
schema: { version: number; generatedAt: string };
};
export const index: TimeseriesIndex = ${JSON.stringify(out, null, 2)} as const;
export default index;
Expand Down
1 change: 0 additions & 1 deletion src/data/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export type TimeseriesIndex = {
summary?: unknown;
}
>;
schema: { version: number; generatedAt: string };
};
export const index: TimeseriesIndex = {
byPathway: {
Expand Down
1 change: 0 additions & 1 deletion src/utils/timeseriesIndex.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down
7 changes: 5 additions & 2 deletions tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@
"isolatedModules": true,
"noEmit": true,
"strict": true,
"allowSyntheticDefaultImports": true
"allowSyntheticDefaultImports": true,
"composite": true,
"tsBuildInfoFile": ".tsbuildcache/node.tsbuildinfo"
},
"include": [
"vite.config.ts",
"eslint.config.ts",
"vitest.config.ts",
"postcss.config.ts",
"tailwind.config.ts",
"src/utils/*.ts"
"src/utils/*.ts",
"src/data/index.gen.ts"
]
}