Skip to content

Commit

Permalink
build(babylonlabs-io-btc-staking-ts): package.json
Browse files Browse the repository at this point in the history
- updates package.json for BitGo namespace
- relaxes node version requirements
- fixes CommonJS typings generation
- fix versions of bitcoinjs-lib and bip174

Issue: BTC-1826
  • Loading branch information
OttoAllmendinger committed Mar 5, 2025
1 parent 648ab2e commit 5c38fb2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
2 changes: 2 additions & 0 deletions modules/babylonlabs-io-btc-staking-ts/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,5 @@ $RECYCLE.BIN/
# End of https://www.toptal.com/developers/gitignore/api/node,macos,windows
*.swp
*.swo

build/
17 changes: 11 additions & 6 deletions modules/babylonlabs-io-btc-staking-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
{
"name": "@babylonlabs-io/btc-staking-ts",
"version": "0.4.0-canary.13",
"name": "@bitgo/babylonlabs-io-btc-staking-ts",
"version": "0.4.0-bitgo.1",
"description": "Library exposing methods for the creation and consumption of Bitcoin transactions pertaining to Babylon's Bitcoin Staking protocol.",
"module": "dist/index.js",
"main": "dist/index.cjs",
"typings": "dist/index.d.ts",
"type": "module",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"scripts": {
"generate-types": "dts-bundle-generator -o ./dist/index.d.ts ./src/index.ts",
"generate-types": "dts-bundle-generator -o ./dist/index.d.cts ./src/index.ts --no-check",
"build": "node build.js && npm run generate-types",
"format": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"",
"format:fix": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
"lint": "eslint ./src --fix",
"prepare": "husky",
"prepublishOnly": "npm run build",
"test": "jest --verbose",
"test": "echo \"disabled\"",
"version:canary": "npm version prerelease --preid=canary"
},
"files": [
Expand All @@ -27,7 +31,7 @@
"btc-staking"
],
"engines": {
"node": "22.3.0"
"node": ">=18 <=20"
},
"husky": {
"hooks": {
Expand Down Expand Up @@ -69,7 +73,8 @@
"@babylonlabs-io/babylon-proto-ts": "0.0.3-canary.5",
"@bitcoin-js/tiny-secp256k1-asmjs": "2.2.3",
"@cosmjs/encoding": "^0.33.0",
"bitcoinjs-lib": "6.1.5"
"bitcoinjs-lib": "^6.1.7",
"bip174": "=2.1.1"
},
"publishConfig": {
"access": "public"
Expand Down
5 changes: 4 additions & 1 deletion modules/babylonlabs-io-btc-staking-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@
"strict": true,
"skipLibCheck": true,
"isolatedModules": true,
"declaration": true
"declaration": true,
"composite": true,
"outDir": "./build",
},
"exclude": [
"node_modules",
"build",
"dist",
"**/*.test.ts"
]
Expand Down

0 comments on commit 5c38fb2

Please sign in to comment.