site: complete conversion back to CJS

pull/6796/head
Ben McCann 3 years ago
parent ada0767ff2
commit 72a7d1c034

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

Loading…
Cancel
Save