prefix node module import with node:

This commit is contained in:
Viet Huynh
2023-11-21 03:00:35 +07:00
parent 041970972a
commit df2a2d7141
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { existsSync } from "fs"; import { existsSync } from "node:fs";
import { resolve } from "path"; import { resolve } from "node:path";
import { import {
createZeroTrustListsAtOnce, createZeroTrustListsAtOnce,
+3 -3
View File
@@ -1,6 +1,6 @@
import { existsSync } from "fs"; import { existsSync } from "node:fs";
import { unlink } from "fs/promises"; import { unlink } from "node:fs/promises";
import { resolve } from "path"; import { resolve } from "node:path";
import { import {
LIST_TYPE, LIST_TYPE,
+5 -5
View File
@@ -1,8 +1,8 @@
import { once } from "events"; import { once } from "node:events";
import { createReadStream, createWriteStream } from "fs"; import { createReadStream, createWriteStream } from "node:fs";
import { basename } from "path"; import { basename } from "node:path";
import { createInterface } from "readline"; import { createInterface } from "node:readline";
import { pipeline } from "stream/promises"; import { pipeline } from "node:stream/promises";
if (!globalThis.fetch) { if (!globalThis.fetch) {
globalThis.fetch = (await import("node-fetch")).default; globalThis.fetch = (await import("node-fetch")).default;