diff --git a/tests/tsconfig.json b/tests/tsconfig.json deleted file mode 100644 index 5dc8cdd..0000000 --- a/tests/tsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "../tsconfig.json", - "compilerOptions": { - "noEmit": true - }, - "include": ["./**/*"] -} diff --git a/tests/utils/formatters.spec.ts b/tests/utils/formatters.spec.ts index 4f1cbd4..cf6d9d1 100644 --- a/tests/utils/formatters.spec.ts +++ b/tests/utils/formatters.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, expectTypeOf, test } from "vitest"; -import { useDecimals } from "../../src/utils/formatters"; +import { useDecimals } from "../../src/utils/formatters.js"; import type { BigNumberish } from "ethers"; @@ -16,7 +16,9 @@ describe("useDecimals", () => { test("ETH decimal value", () => { const { decimalToBigNumber } = useDecimals(18); expectTypeOf(decimalToBigNumber("1.5")).toEqualTypeOf(); - expect(decimalToBigNumber("1.5").toString()).toEqual("1500000000000000000"); + expect(decimalToBigNumber("1.5").toString()).toEqual( + "1500000000000000000" + ); }); test("USDC decimal value", () => { diff --git a/tsconfig.build.json b/tsconfig.build.json index 21b273a..888183a 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -1,8 +1,10 @@ { + "extends": "./tsconfig.json", "compilerOptions": { "declaration": true, - "sourceMap": true + "sourceMap": true, + "rootDir": "./src", + "removeComments": true }, - "extends": "./tsconfig.json", "exclude": ["**/*.spec.ts"] } diff --git a/tsconfig.json b/tsconfig.json index c76306d..c7f5caf 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,10 +4,10 @@ "module": "NodeNext", "moduleResolution": "NodeNext", "outDir": "./bin", - "rootDir": "./src", + "rootDir": ".", "esModuleInterop": true, "strict": true, "resolveJsonModule": true }, - "include": ["./src"] + "include": ["src/**/*", "tests/**/*"] }