diff --git a/karma.conf.cjs b/karma.conf.cjs index cc239b8..893bfde 100644 --- a/karma.conf.cjs +++ b/karma.conf.cjs @@ -50,7 +50,7 @@ module.exports = function (config) { type: "asset/resource", }, { - test: /\.(js|ts|tsx)$/, + test: /\.(js|tsx?)$/, loader: "ts-loader", exclude: /node_modules|\.d\.ts$/, options: { configFile: "tsconfig.karma.json" }, diff --git a/src/const.ts b/src/constants.ts similarity index 100% rename from src/const.ts rename to src/constants.ts diff --git a/src/index.ts b/src/index.ts index d2d837d..34e5f7e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,5 @@ import { RLNDecoder, RLNEncoder } from "./codec.js"; -import { GOERLI_CONTRACT, RLN_ABI } from "./const.js"; +import { GOERLI_CONTRACT, RLN_ABI } from "./constants.js"; import { Proof, RLNInstance } from "./rln.js"; import { MembershipKey } from "./rln.js"; import { RLNContract } from "./rln_contract.js"; diff --git a/src/rln_contract.ts b/src/rln_contract.ts index 6f0e717..b9dc36c 100644 --- a/src/rln_contract.ts +++ b/src/rln_contract.ts @@ -1,6 +1,6 @@ import { ethers } from "ethers"; -import { RLN_ABI } from "./const.js"; +import { RLN_ABI } from "./constants.js"; import { RLNInstance } from "./rln.js"; type Member = {