mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-16 02:26:10 +08:00
chore: fix dirname not defined in nodejs modules
This commit is contained in:
parent
fe50fe1659
commit
9972e9d39f
1 changed files with 6 additions and 1 deletions
|
@ -3,8 +3,13 @@ import { Octokit } from "@octokit/rest";
|
|||
import dotenv from "dotenv";
|
||||
import { readFileSync } from "fs";
|
||||
import readlineSync from "readline-sync";
|
||||
import path, { dirname } from "path";
|
||||
import path from "path";
|
||||
import fs from "fs";
|
||||
import { fileURLToPath } from "url";
|
||||
import { dirname } from "path";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
||||
dotenv.config();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue