diff --git a/deno.json b/deno.json index a9f2791..f97bd0a 100644 --- a/deno.json +++ b/deno.json @@ -32,7 +32,7 @@ }, "lint": { - "exclude": ["./yoga", "./build"], + "exclude": ["./yoga", "./build", "./tests"], "rules": { "exclude": ["no-unused-vars", "no-process-globals", "no-var"] } diff --git a/mod.ts b/mod.ts index 3571442..93be02e 100644 --- a/mod.ts +++ b/mod.ts @@ -24,9 +24,7 @@ if (typeof Deno === "object") { module, new URL("./build/libyoga_node_api.dylib", import.meta.url).pathname, ); - // @ts-expect-error require is not defined } else if (typeof require !== "undefined") { - // @ts-expect-error require is not defined const r = require; module = r( "NSBundle" in globalThis