From 78dd75ab0d8a415ae45009fa521c2ec2035805a1 Mon Sep 17 00:00:00 2001 From: dynst <148708712+dynst@users.noreply.github.com> Date: Tue, 22 Jul 2025 00:00:00 +0000 Subject: [PATCH 1/5] moduleResolution=node16 --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index c94d2ce2c7..242b7840fc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ "lib": ["es2020"], "target": "es2020", "module": "commonjs", - "moduleResolution": "node", + "moduleResolution": "node16", "newLine": "LF", "noEmitOnError": true, "noFallthroughCasesInSwitch": true, From 788d6c58ca822c1bbd65a1a56b85544fb9158a3d Mon Sep 17 00:00:00 2001 From: dynst <148708712+dynst@users.noreply.github.com> Date: Tue, 22 Jul 2025 00:00:00 +0000 Subject: [PATCH 2/5] module=nodenext --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 242b7840fc..221f1c2e31 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "forceConsistentCasingInFileNames": true, "lib": ["es2020"], "target": "es2020", - "module": "commonjs", + "module": "nodenext", "moduleResolution": "node16", "newLine": "LF", "noEmitOnError": true, From 0b40e9b6622f2c3ee97a40a305523d0ca547d128 Mon Sep 17 00:00:00 2001 From: dynst <148708712+dynst@users.noreply.github.com> Date: Tue, 22 Jul 2025 00:00:00 +0000 Subject: [PATCH 3/5] module=esnext --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 221f1c2e31..6f54e28f11 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "forceConsistentCasingInFileNames": true, "lib": ["es2020"], "target": "es2020", - "module": "nodenext", + "module": "esnext", "moduleResolution": "node16", "newLine": "LF", "noEmitOnError": true, From 1fe811dadcfe73d64c79b21ff5bfc56d69b9920e Mon Sep 17 00:00:00 2001 From: dynst <148708712+dynst@users.noreply.github.com> Date: Tue, 22 Jul 2025 00:00:00 +0000 Subject: [PATCH 4/5] moduleResolution=bundler --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 6f54e28f11..26888b9453 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ "lib": ["es2020"], "target": "es2020", "module": "esnext", - "moduleResolution": "node16", + "moduleResolution": "bundler", "newLine": "LF", "noEmitOnError": true, "noFallthroughCasesInSwitch": true, From ff9f9654fe25ec28c39b13c4d46fd6af7b3f8b35 Mon Sep 17 00:00:00 2001 From: dynst <148708712+dynst@users.noreply.github.com> Date: Tue, 22 Jul 2025 00:00:00 +0000 Subject: [PATCH 5/5] fix require() import --- packages/faucet/src/api/webserver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/faucet/src/api/webserver.ts b/packages/faucet/src/api/webserver.ts index 684b72e5da..d316136d63 100644 --- a/packages/faucet/src/api/webserver.ts +++ b/packages/faucet/src/api/webserver.ts @@ -1,6 +1,6 @@ // eslint-disable-next-line @typescript-eslint/naming-convention import Koa from "koa"; -import cors = require("@koa/cors"); +import cors from "@koa/cors"; import bodyParser from "koa-bodyparser"; import { isValidAddress } from "../addresses";