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

Commit

Permalink
Fix ethjs-util types resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
tomonari-t authored and cgewecke committed Jun 4, 2020
1 parent 8620487 commit 40ecfe9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = function(config) {
config.set({
frameworks: ['mocha', 'karma-typescript'],
exclude: ["src/@types/**"], // ref: https://github.com/monounity/karma-typescript/issues/254
files: ['src/**/*.ts', 'test/**/*.ts'],
preprocessors: {
'**/*.ts': ['karma-typescript'],
Expand Down
File renamed without changes.
3 changes: 0 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/// <reference path="../typings/ethjs-util.d.ts"/>
import * as ethjsUtil from 'ethjs-util'

/**
* Constants
*/
Expand Down
8 changes: 7 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"extends": "@ethereumjs/config-tsc",
"include": ["src/**/*.ts", "test/**/*.ts", "typings/**/*.js"]
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": ["src/@types/*"]
}
},
"include": ["src/**/*.ts", "test/**/*.ts"]
}
5 changes: 2 additions & 3 deletions tsconfig.prod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "@ethereumjs/config-tsc",
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
},
"include": ["src/**/*.ts", "typings/**/*.ts"]
}
}

0 comments on commit 40ecfe9

Please sign in to comment.