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'; 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`;

Loading…
Cancel
Save