Skip to content

Commit f1dd382

Browse files
OttoAllmendingerllm-git
andcommitted
fix(babylonlabs-io-btc-staking-ts): update package metadata for BitGo fork
Update package name, version, and dependencies to support BitGo's fork of the babylonlabs BTC staking library. Simplified build configuration and updated Node.js version requirements. Issue: BTC-2143 Co-authored-by: llm-git <[email protected]>
1 parent aba206e commit f1dd382

File tree

1 file changed

+11
-47
lines changed

1 file changed

+11
-47
lines changed

modules/babylonlabs-io-btc-staking-ts/package.json

Lines changed: 11 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
{
2-
"name": "@babylonlabs-io/btc-staking-ts",
3-
"version": "0.0.0-semantic-release",
2+
"name": "@bitgo/babylonlabs-io-btc-staking-ts",
3+
"version": "2.3.4",
44
"description": "Library exposing methods for the creation and consumption of Bitcoin transactions pertaining to Babylon's Bitcoin Staking protocol.",
55
"module": "dist/index.js",
66
"main": "dist/index.cjs",
77
"typings": "dist/index.d.ts",
88
"type": "module",
9+
"exports": {
10+
"import": "./dist/index.js",
11+
"require": "./dist/index.cjs"
12+
},
913
"scripts": {
10-
"generate-types": "dts-bundle-generator -o ./dist/index.d.ts ./src/index.ts",
14+
"generate-types": "dts-bundle-generator -o ./dist/index.d.cts ./src/index.ts --no-check",
1115
"build": "node build.js && npm run generate-types",
12-
"format": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"",
13-
"format:fix": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
14-
"lint": "eslint ./src --fix",
1516
"prepare": "husky",
1617
"prepublishOnly": "npm run build",
17-
"test": "jest --verbose",
18-
"test:watch": "jest --watch",
1918
"version:canary": "npm version prerelease --preid=canary"
2019
},
2120
"files": [
@@ -28,56 +27,21 @@
2827
"btc-staking"
2928
],
3029
"engines": {
31-
"node": "24.2.0"
32-
},
33-
"husky": {
34-
"hooks": {
35-
"pre-commit": "lint-staged"
36-
}
37-
},
38-
"lint-staged": {
39-
"src/**/*.ts": [
40-
"prettier --write",
41-
"eslint --fix"
42-
],
43-
"tests/**/*.ts": [
44-
"prettier --write",
45-
"eslint --fix"
46-
]
30+
"node": ">=18 < 23"
4731
},
4832
"author": "Babylon Labs Ltd.",
4933
"license": "SEE LICENSE IN LICENSE",
5034
"devDependencies": {
51-
"@commitlint/cli": "^19.8.0",
52-
"@commitlint/config-conventional": "^19.8.0",
53-
"@semantic-release/changelog": "^6.0.3",
54-
"@semantic-release/git": "^10.0.1",
55-
"@semantic-release/npm": "^12.0.1",
56-
"@types/jest": "^29.5.12",
57-
"@types/node": "^20.11.30",
58-
"@typescript-eslint/parser": "^7.4.0",
5935
"dts-bundle-generator": "^9.3.1",
60-
"ecpair": "^2.1.0",
6136
"esbuild": "^0.20.2",
62-
"eslint": "^8.57.0",
63-
"eslint-config-prettier": "^9.1.0",
64-
"eslint-plugin-prettier": "^5.1.3",
65-
"husky": "^9.0.11",
66-
"jest": "^29.7.0",
67-
"lint-staged": "^15.2.7",
68-
"prettier": "^3.2.5",
69-
"prettier-plugin-organize-imports": "^3.2.4",
70-
"semantic-release": "^24.2.3",
71-
"ts-jest": "^29.1.4",
72-
"typescript": "^5.4.5",
73-
"typescript-eslint": "^7.4.0",
7437
"nanoevents": "^9.1.0"
7538
},
7639
"dependencies": {
77-
"@babylonlabs-io/babylon-proto-ts": "1.0.1",
40+
"@babylonlabs-io/babylon-proto-ts": "1.0.0",
7841
"@bitcoin-js/tiny-secp256k1-asmjs": "2.2.3",
7942
"@cosmjs/encoding": "^0.33.0",
80-
"bitcoinjs-lib": "6.1.5"
43+
"bip174": "=2.1.1",
44+
"bitcoinjs-lib": "^6.1.7"
8145
},
8246
"publishConfig": {
8347
"access": "public"

0 commit comments

Comments
 (0)