From a8c9238bf4bf3fd678a72967caa04014a1a7a1e2 Mon Sep 17 00:00:00 2001 From: cgewecke Date: Thu, 2 Jul 2020 10:54:23 -0700 Subject: [PATCH 1/2] Fix prod tsconfig and include ethjs-util types in dist --- src/@types/ethjs-util/{index.d.ts => index.ts} | 0 tsconfig.prod.json | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) rename src/@types/ethjs-util/{index.d.ts => index.ts} (100%) diff --git a/src/@types/ethjs-util/index.d.ts b/src/@types/ethjs-util/index.ts similarity index 100% rename from src/@types/ethjs-util/index.d.ts rename to src/@types/ethjs-util/index.ts diff --git a/tsconfig.prod.json b/tsconfig.prod.json index f93323e1..37770820 100644 --- a/tsconfig.prod.json +++ b/tsconfig.prod.json @@ -2,5 +2,6 @@ "extends": "./tsconfig.json", "compilerOptions": { "outDir": "./dist" - } + }, + "include": ["src/**/*.ts"] } From 173e6bc190ee13cb4e84ccc3fb55f9efaf3fcda6 Mon Sep 17 00:00:00 2001 From: cgewecke Date: Mon, 6 Jul 2020 09:22:52 -0700 Subject: [PATCH 2/2] Add reference path for ethjs-util types in index.ts --- src/index.ts | 1 + tsconfig.json | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index 37831e28..2597ae4a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,4 @@ +/// /** * Constants */ diff --git a/tsconfig.json b/tsconfig.json index e80502d7..ddbd8a97 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,10 +1,4 @@ { "extends": "@ethereumjs/config-tsc", - "compilerOptions": { - "baseUrl": ".", - "paths": { - "*": ["src/@types/*"] - } - }, "include": ["src/**/*.ts", "test/**/*.ts"] }