Skip to content

Commit dfedaa1

Browse files
committed
Postinstall hook: Use modified tx.js, txdb.js
1 parent 0a79bf0 commit dfedaa1

File tree

4 files changed

+5337
-1
lines changed

4 files changed

+5337
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"prepublish": "npm run build",
1010
"typecheck": "flow check",
1111
"lint": "./node_modules/.bin/eslint --fix src/ test/",
12-
"check": "npm run lint && npm run typecheck && npm run test"
12+
"check": "npm run lint && npm run typecheck && npm run test",
13+
"postinstall": "scripts/postinstall.js"
1314
},
1415
"repository": {
1516
"type": "git",

scripts/postinstall.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cp scripts/tx.js node_modules/bcoin/lib/primitives
2+
cp scripts/txdb.js node_modules/bcoin/lib/wallet

0 commit comments

Comments
 (0)