|
1 | 1 | { |
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.5.7", |
4 | 4 | "description": "Library exposing methods for the creation and consumption of Bitcoin transactions pertaining to Babylon's Bitcoin Staking protocol.", |
5 | 5 | "module": "dist/index.js", |
6 | 6 | "main": "dist/index.cjs", |
7 | 7 | "typings": "dist/index.d.ts", |
8 | 8 | "type": "module", |
| 9 | + "exports": { |
| 10 | + "import": "./dist/index.js", |
| 11 | + "require": "./dist/index.cjs" |
| 12 | + }, |
9 | 13 | "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", |
11 | 15 | "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", |
15 | 16 | "prepare": "husky", |
16 | 17 | "prepublishOnly": "npm run build", |
17 | | - "test": "jest --verbose", |
18 | | - "test:watch": "jest --watch", |
19 | 18 | "version:canary": "npm version prerelease --preid=canary" |
20 | 19 | }, |
21 | 20 | "files": [ |
|
28 | 27 | "btc-staking" |
29 | 28 | ], |
30 | 29 | "engines": { |
31 | | - "node": ">=22.0.0 <25.0.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" |
47 | 31 | }, |
48 | 32 | "author": "Babylon Labs Ltd.", |
49 | 33 | "license": "SEE LICENSE IN LICENSE", |
50 | 34 | "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", |
59 | 35 | "dts-bundle-generator": "^9.3.1", |
60 | | - "ecpair": "^2.1.0", |
61 | | - "esbuild": "^0.25.9", |
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 | | - "nanoevents": "^9.1.0", |
69 | | - "prettier": "^3.2.5", |
70 | | - "prettier-plugin-organize-imports": "^3.2.4", |
71 | | - "semantic-release": "^24.2.3", |
72 | | - "ts-jest": "^29.1.4", |
73 | | - "typescript": "^5.4.5", |
74 | | - "typescript-eslint": "^7.4.0" |
| 36 | + "esbuild": "^0.20.2", |
| 37 | + "nanoevents": "^9.1.0" |
75 | 38 | }, |
76 | 39 | "dependencies": { |
77 | 40 | "@babylonlabs-io/babylon-proto-ts": "1.7.2", |
78 | 41 | "@bitcoin-js/tiny-secp256k1-asmjs": "2.2.3", |
79 | 42 | "@cosmjs/encoding": "^0.33.0", |
80 | | - "bitcoinjs-lib": "6.1.5" |
| 43 | + "bip174": "=2.1.1", |
| 44 | + "bitcoinjs-lib": "^6.1.7" |
81 | 45 | }, |
82 | 46 | "publishConfig": { |
83 | 47 | "access": "public" |
|
0 commit comments