Skip to content

Commit cb43a99

Browse files
committed
Removed extra wordlists from the dist files (#2058, #2077).
1 parent b7e61bd commit cb43a99

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

packages/wordlists/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"./lib/wordlists": "./lib/wordlists.js"
44
},
55
"_ethers.alias": {
6-
"dead-wordlists.js": "dead-browser-wordlists.js"
6+
"wordlists.js": "browser-wordlists.js"
77
},
88
"author": "Richard Moore <[email protected]>",
99
"dependencies": {
10-
"@ethersproject/bytes": "^5.4.0",
11-
"@ethersproject/hash": "^5.4.0",
12-
"@ethersproject/logger": "^5.4.0",
13-
"@ethersproject/properties": "^5.4.0",
14-
"@ethersproject/strings": "^5.4.0"
10+
"@ethersproject/bytes": "^5.5.0",
11+
"@ethersproject/hash": "^5.5.0",
12+
"@ethersproject/logger": "^5.5.0",
13+
"@ethersproject/properties": "^5.5.0",
14+
"@ethersproject/strings": "^5.5.0"
1515
},
1616
"description": "Word lists for BIP39 wallets.",
1717
"ethereum": "donations.ethers.eth",
@@ -45,7 +45,7 @@
4545
"test": "echo \"Error: no test specified\" && exit 1"
4646
},
4747
"sideEffects": false,
48-
"tarballHash": "0xed146d30213e5f1c9faca4285d27254e3143759f02793b80a5ebc0f19703ea11",
48+
"tarballHash": "0x50636816baaed99154f0458e399e704ed58bebaa67a480ab3edebb900ee57965",
4949
"types": "./lib/index.d.ts",
50-
"version": "5.4.0"
50+
"version": "5.5.0"
5151
}

rollup-dist.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ function addUtilsReplace(plugins) {
3131
return plugins;
3232
}
3333

34+
function addLangReplace(plugins) {
35+
36+
plugins.push(replace({
37+
'require("./wordlists")': 'require("./browser-wordlists")/*RicMoo:ethers:require(wordlists)*/',
38+
include: "**/wordlists/lib/index.js",
39+
delimiters: [ '', '' ]
40+
}));
41+
42+
return plugins;
43+
}
44+
3445
function addEllipticReplace(plugins) {
3546

3647
// Replace the package.json in elliptic
@@ -70,6 +81,7 @@ function getUmdConfig() {
7081

7182
addUtilsReplace(plugins);
7283
addEllipticReplace(plugins);
84+
addLangReplace(plugins);
7385

7486
plugins.push(resolveNode({
7587
mainFields: [ "browser", "main" ]

0 commit comments

Comments
 (0)