Skip to content

Commit 2b98472

Browse files
committed
fix client declaration files by pointing to node_modules in root (due to lerna hoisting)
1 parent 5cf6408 commit 2b98472

File tree

7 files changed

+4
-11
lines changed

7 files changed

+4
-11
lines changed

packages/client/browser/libp2pnode.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@
33
* @memberof module:net/peer
44
*/
55

6-
// @ts-ignore TODO: fix could not find a declaration file (browser)
76
import LibP2pWebsockets from 'libp2p-websockets'
8-
// @ts-ignore TODO: fix could not find a declaration file (browser)
97
import LibP2pBootstrap from 'libp2p-bootstrap'
10-
// @ts-ignore TODO: fix could not find a declaration file (browser)
118
import mplex from 'libp2p-mplex'
12-
// @ts-ignore TODO: fix could not find a declaration file (browser)
139
import secio from 'libp2p-secio'
1410

1511
const libp2p = require('libp2p')

packages/client/lib/net/peer/libp2ppeer.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// @ts-ignore TODO: fix could not find a declaration file
21
import PeerId from 'peer-id'
3-
// @ts-ignore TODO: fix could not find a declaration file
42
import PeerInfo from 'peer-info'
53
import { Multiaddrs, MultiaddrsLike } from '../../types'
64
import { parseMultiaddrs } from '../../util'

packages/client/lib/net/protocol/libp2psender.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Sender } from './sender'
22
import { bufferToInt, rlp } from 'ethereumjs-util'
3-
// @ts-ignore TODO: fix could not find a declaration file
43
import { Pushable } from 'pull-pushable'
54

65
// TODO: polkadot/ts types seem wrong (?)

packages/client/tsconfig.browser.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"compilerOptions": {
66
"outDir": "dist.browser",
77
"typeRoots": [
8-
"node_modules/@polkadot/ts"
8+
"../../node_modules/@polkadot/ts"
99
]
1010
}
1111
}

packages/client/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"include": ["bin", "lib", "test"],
44
"compilerOptions": {
55
"typeRoots": [
6-
"node_modules/@polkadot/ts"
6+
"../../node_modules/@polkadot/ts"
77
]
88
}
99
}

packages/client/tsconfig.karma.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"include": ["bin", "lib", "test"],
44
"compilerOptions": {
55
"typeRoots": [
6-
"node_modules/@polkadot/ts"
6+
"../../node_modules/@polkadot/ts"
77
],
88
"skipLibCheck": true
99
}

packages/client/tsconfig.prod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"outDir": "dist",
66
"lib": ["es2018", "dom"],
77
"typeRoots": [
8-
"node_modules/@polkadot/ts"
8+
"../../node_modules/@polkadot/ts"
99
]
1010
}
1111
}

0 commit comments

Comments
 (0)