Skip to content
This repository was archived by the owner on Jun 17, 2021. It is now read-only.

Commit 40ecfe9

Browse files
tomonari-tcgewecke
authored andcommitted
Fix ethjs-util types resolution
1 parent 8620487 commit 40ecfe9

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

karma.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = function(config) {
22
config.set({
33
frameworks: ['mocha', 'karma-typescript'],
4+
exclude: ["src/@types/**"], // ref: https://github.com/monounity/karma-typescript/issues/254
45
files: ['src/**/*.ts', 'test/**/*.ts'],
56
preprocessors: {
67
'**/*.ts': ['karma-typescript'],
File renamed without changes.

src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/// <reference path="../typings/ethjs-util.d.ts"/>
2-
import * as ethjsUtil from 'ethjs-util'
3-
41
/**
52
* Constants
63
*/

tsconfig.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
{
22
"extends": "@ethereumjs/config-tsc",
3-
"include": ["src/**/*.ts", "test/**/*.ts", "typings/**/*.js"]
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"paths": {
6+
"*": ["src/@types/*"]
7+
}
8+
},
9+
"include": ["src/**/*.ts", "test/**/*.ts"]
410
}

tsconfig.prod.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
2-
"extends": "@ethereumjs/config-tsc",
2+
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"outDir": "./dist"
5-
},
6-
"include": ["src/**/*.ts", "typings/**/*.ts"]
5+
}
76
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy