diff --git a/cli/utils.ts b/cli/utils.ts index f0927baba4..5f2de77f6b 100644 --- a/cli/utils.ts +++ b/cli/utils.ts @@ -3,6 +3,7 @@ // @ts-nocheck This file is copied from a JS project, so it's not type-safe. import { log, encodeHex, SEP } from "./deps.ts"; +import crypto from "node:crypto"; export function deepEqual(a: T, b: T): boolean { if (a === b) return true; @@ -132,6 +133,9 @@ export function sleep(ms: number) { export function isFileResource(path: string): boolean { const splitPath = path.split("."); - return splitPath.length >= 4 && splitPath[1] == "resource" && splitPath[2] == "file"; + return ( + splitPath.length >= 4 && + splitPath[1] == "resource" && + splitPath[2] == "file" + ); } -