From 5df22835f6e475ca7842106a7455060530eeb424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jerem=C3=ADas=20D=C3=ADaz?= Date: Mon, 17 Feb 2020 03:09:30 -0300 Subject: [PATCH] fix: make bn.js into a regular dependency (#1876) Since `AbstractInt` is exposing `toBn(): BN` which uses `bn.js` types, projects using polkadot are forced to install `@types/bn.js` on their own, otherwise they get compilation errors --- packages/types/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/types/package.json b/packages/types/package.json index 11b769fe47..2b32059725 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -37,6 +37,7 @@ "@polkadot/metadata": "^1.3.0-beta.4", "@polkadot/util": "^2.3.1", "@polkadot/util-crypto": "^2.3.1", + "@types/bn.js": "^4.11.6", "bn.js": "^5.1.1", "memoizee": "^0.4.14", "rxjs": "^6.5.4", @@ -45,7 +46,6 @@ }, "devDependencies": { "@polkadot/keyring": "^2.3.1", - "@types/bn.js": "^4.11.6", "@types/memoizee": "^0.4.3", "@types/yargs": "^15.0.3" }