preliminary stuff

This commit is contained in:
dylan
2024-04-20 23:28:33 -07:00
parent dd3482c11d
commit ef79a9371f
12 changed files with 534 additions and 269 deletions

11
scripts/run-with-env.ts Normal file
View File

@ -0,0 +1,11 @@
import dotenv from 'dotenv';
import * as url from 'url';
import * as path from 'path';
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
const dotenvPath = path.join(__dirname, "..", ".env");
dotenv.config({
path: dotenvPath,
});
if (process.argv[2]) {
import(path.join(process.cwd(), process.argv[2]));
}