Fix esrun failure due to fs/promises import (digital-loukoum/esrun#40)

pull/256/head
Candid Dauth 2023-11-14 19:04:11 +01:00
rodzic fdfc443e31
commit b9ac3b31a2
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1,6 +1,6 @@
import type { Manifest } from "vite";
import { paths, serve } from "facilmap-frontend/build.js";
import { readFile } from "fs/promises";
import { readFile } from "node:fs/promises";
import type { ID, Line, Marker, PadData, Type } from "facilmap-types";
import * as ejs from "ejs";
import * as utils from "facilmap-utils";

Wyświetl plik

@ -3,7 +3,7 @@ import md5 from "md5-file";
import { schedule } from "node-cron";
import { open, type Reader, type Response } from "maxmind";
import { createWriteStream } from "fs";
import { rename } from "fs/promises";
import { rename } from "node:fs/promises";
import https from "https";
import zlib from "zlib";
import config from "./config.js";