preliminary stuff
This commit is contained in:
1 parent
dd3482c11d
commit
ef79a9371f
12 files changed
+534
-269
No files matched your search
@@ -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]));
|
||||
}
|
||||
Reference in new issue
Block a user