Closed cgewecke closed 4 years ago
@cgewecke thanks for addressing this so quickly, this looks already a lot better with the correct general folder structure and the types from ethjs-util
being exported.
When I pack and test-install this I don't get access to an ES6-style import structure though (or is this technically just not possible?) nor do I get any type information, see the following screenshot:
Could you have a look and state what should and should not be working here? 😄
We should also add usage information on the docs here along (on this PR or the subsequent release PR).
@nebojsa94 @alcuadrado we need to address this here until we can release v7.0.3
.
@holgerd77 Very sorry, thanks for double-checking this.
I think 173e6bc fixes. Tested locally and TS was able to resolve the types from the dist. Have also removed the added compiler options that were papering over this problem in the tests.
We should also add usage information
The existing example shows an import statement like this:
import { isValidChecksumAddress, unpad, BN } from 'ethereumjs-util'
Are you thinking of something more detailed?
Fixes two bugs introduced in #248.
include
option in tsconfig.prod.json. Files are no longer written todist/src
anddist/test
is no longer produced.d.ts
file for it and copy everthing into dist appropriately. (More info about this approach on stack overflow here.)