From 5d7f77f300bda22222e3193a0996516bf22a36ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?rich=CE=9Brd?= Date: Mon, 3 Jul 2023 10:30:03 -0400 Subject: [PATCH] fix: add `moduleResolution` to `package.json` (#65) Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com> --- src/rln.ts | 3 ++- tsconfig.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rln.ts b/src/rln.ts index f30833c..e9fa169 100644 --- a/src/rln.ts +++ b/src/rln.ts @@ -1,5 +1,6 @@ import type { IRateLimitProof } from "@waku/interfaces"; -import init, * as zerokitRLN from "@waku/zerokit-rln-wasm"; +import { default as init } from "@waku/zerokit-rln-wasm"; +import * as zerokitRLN from "@waku/zerokit-rln-wasm"; import { writeUIntLE } from "./byte_utils.js"; import { dateToEpoch, epochIntToBytes } from "./epoch.js"; diff --git a/tsconfig.json b/tsconfig.json index 905d2fc..3bd2c83 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ "target": "es2020", "outDir": "dist/", "rootDir": "src", - "moduleResolution": "node", + "moduleResolution": "node16", "module": "es2020", "declaration": true, "allowJs": true,