- rename more files to .ts/.tsx - update tailwind config to use .tsx files from all dirs - merge css files into a single main.css to avoid import order dependencies - minor cleanups due to ts complaints
13 lines
411 B
JavaScript
13 lines
411 B
JavaScript
import "dotenv/config";
|
|
import fs from "fs";
|
|
import { databaseReadWithReadCredentials } from "../database/database-wrapper";
|
|
|
|
let main = async () => {
|
|
let json = await databaseReadWithReadCredentials({ group: "combined" });
|
|
let string = JSON.stringify(json, null, 2);
|
|
let filename = "metaforecasts.json";
|
|
fs.writeFileSync(filename, string);
|
|
console.log(`File downloaded to ./${filename}`);
|
|
};
|
|
main();
|