|
|
@ -1,14 +1,13 @@
|
|
|
|
import 'dotenv/config';
|
|
|
|
require('dotenv/config');
|
|
|
|
import fs from 'fs';
|
|
|
|
const fs = require('fs');
|
|
|
|
import fetch from 'node-fetch';
|
|
|
|
const fetch = require('node-fetch');
|
|
|
|
import Jimp from 'jimp';
|
|
|
|
const Jimp = require('jimp');
|
|
|
|
import { dirname } from 'path';
|
|
|
|
const { dirname } = require('path');
|
|
|
|
import { fileURLToPath } from 'url';
|
|
|
|
const { fileURLToPath } = require('url');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const force = process.env.FORCE_UPDATE === 'true';
|
|
|
|
const force = process.env.FORCE_UPDATE === 'true';
|
|
|
|
|
|
|
|
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
|
|
|
|
|
|
process.chdir(__dirname);
|
|
|
|
process.chdir(__dirname);
|
|
|
|
|
|
|
|
|
|
|
|
const outputFile = `../src/routes/_donors.js`;
|
|
|
|
const outputFile = `../src/routes/_donors.js`;
|
|
|
|