-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpackage.json
More file actions
162 lines (162 loc) · 6.35 KB
/
package.json
File metadata and controls
162 lines (162 loc) · 6.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{
"name": "@bitcoinerlab/descriptors-core",
"description": "This library parses and creates Bitcoin Miniscript Descriptors and generates Partially Signed Bitcoin Transactions (PSBTs). It provides PSBT finalizers and signers for single-signature, BIP32 and Hardware Wallets, with explicit backend wiring for advanced use cases.",
"homepage": "https://github.com/bitcoinerlab/descriptors",
"version": "3.1.7",
"author": "Jose-Luis Landabaso",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/bitcoinerlab/descriptors.git"
},
"keywords": [
"bitcoin",
"descriptors",
"miniscript",
"psbt",
"bitcoinjs",
"scure",
"noble"
],
"bugs": {
"url": "https://github.com/bitcoinerlab/descriptors/issues"
},
"engines": {
"node": ">=20.19.0"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./bitcoinjs": {
"types": "./dist/bitcoinjs.d.ts",
"default": "./dist/bitcoinjs.js"
},
"./ledger": {
"types": "./dist/ledger/index.d.ts",
"default": "./dist/ledger/index.js"
},
"./scure": {
"types": "./dist/scure.d.ts",
"default": "./dist/scure.js"
}
},
"prettier": "@bitcoinerlab/configs/prettierConfig.json",
"eslintConfig": {
"extends": "./node_modules/@bitcoinerlab/configs/eslintConfig"
},
"jest": {
"preset": "@bitcoinerlab/configs",
"transform": {
"^.+node_modules/(?:@noble|@scure|micro-packed)/.+\\.js$": "<rootDir>/jest-esm-transform.cjs"
},
"transformIgnorePatterns": [
"/node_modules/(?!(@noble|@scure|micro-packed)/)"
]
},
"scripts": {
"webdocs": "typedoc --options ./webtypedoc.json && node ./scripts/postprocess-docs.js ./webdocs",
"docs": "typedoc --options ./typedoc.json && node ./scripts/postprocess-docs.js ./docs",
"build:src": "tsc --project ./node_modules/@bitcoinerlab/configs/tsconfig.src.json",
"build:packages": "tsc --project ./packages/descriptors/tsconfig.json && tsc --project ./packages/descriptors-scure/tsconfig.json",
"build:fixtures": "node test/tools/generateBitcoinCoreFixtures.js -i test/fixtures/descriptor_tests.cpp | npx prettier --parser typescript > test/fixtures/bitcoinCore.ts",
"build:test": "npm run build:fixtures && tsc --project ./node_modules/@bitcoinerlab/configs/tsconfig.test.json --resolveJsonModule",
"build": "npm run build:src && npm run build:packages && npm run build:test",
"lint": "./node_modules/@bitcoinerlab/configs/scripts/lint.sh",
"format:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\" \"packages/*/src/**/*.ts\"",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"packages/*/src/**/*.ts\"",
"ensureTester": "./node_modules/@bitcoinerlab/configs/scripts/ensureTester.sh",
"test:integration:soft": "npm run ensureTester && node test/integration/standardOutputs.js && echo \"\n\n\" && node test/integration/miniscript.js && echo \"\n\n\" && node test/integration/sortedmulti.js && echo \"\n\n\" && node test/integration/taproot.js && echo \"\n\n\" && node test/integration/scure.js",
"test:integration:ledger": "npm run ensureTester && node test/integration/ledgerTaproot.js && echo \"\n\n\" && node test/integration/ledger.js",
"test:unit": "jest",
"test:unit:scure": "cross-env BITCOIN_LIB=scure jest",
"test:scure-adapter": "node test/scureAdapter.js",
"test:integration:soft:scure": "cross-env BITCOIN_LIB=scure bash -c 'npm run test:integration:soft'",
"test:integration:ledger:scure": "cross-env BITCOIN_LIB=scure bash -c 'npm run ensureTester && node test/integration/ledgerTaproot.js && echo \"\" && echo \"\" && node test/integration/ledger.js'",
"test:matrix": "npm run test:unit && npm run test:unit:scure && npm run test:scure-adapter && npm run test:integration:soft && npm run test:integration:soft:scure",
"test": "npm run lint && npm run build && npm run test:matrix",
"test:ledger": "npm run lint && npm run build && echo \"\n\n\" && npm run test:integration:ledger:scure && echo \"\n\n\" && npm run test:integration:ledger",
"publish:check": "npm whoami && node ./scripts/check-publish-versions.js",
"publish:all": "npm run publish:check && npm publish --access public && (cd ./packages/descriptors && npm publish --access public) && (cd ./packages/descriptors-scure && npm publish --access public)",
"prepublishOnly": "rm -rf dist/ && npm run test && echo \"\n\n\" && npm run test:integration:ledger:scure && echo \"\n\n\" && npm run test:integration:ledger"
},
"files": [
"dist"
],
"peerDependencies": {
"@ledgerhq/ledger-bitcoin": "^0.3.1",
"@noble/curves": "^2.0.1",
"@noble/hashes": "^2.0.1",
"@scure/base": "^2.0.0",
"@scure/bip32": "^2.0.1",
"@scure/btc-signer": "^2.0.1",
"bip32": "^5.0.1",
"bitcoinjs-lib": "^7.0.1",
"ecpair": "^3.0.1"
},
"peerDependenciesMeta": {
"@ledgerhq/ledger-bitcoin": {
"optional": true
},
"bitcoinjs-lib": {
"optional": true
},
"bip32": {
"optional": true
},
"ecpair": {
"optional": true
},
"@noble/hashes": {
"optional": true
},
"@scure/btc-signer": {
"optional": true
},
"@scure/base": {
"optional": true
},
"@scure/bip32": {
"optional": true
},
"@noble/curves": {
"optional": true
}
},
"devDependencies": {
"@babel/core": "^7.29.0",
"@babel/preset-env": "^7.29.0",
"@bitcoinerlab/configs": "^2.0.0",
"@bitcoinerlab/miniscript-policies": "^1.0.0",
"@bitcoinerlab/secp256k1": "^1.2.0",
"@ledgerhq/hw-transport-node-hid": "^6.30.0",
"@ledgerhq/ledger-bitcoin": "^0.3.1",
"@noble/curves": "^2.0.1",
"@noble/hashes": "^2.0.1",
"@scure/base": "^2.0.0",
"@scure/bip32": "^2.0.1",
"@scure/bip39": "^2.0.1",
"@scure/btc-signer": "^2.0.1",
"@types/lodash.memoize": "^4.1.9",
"babel-jest": "^30.3.0",
"bip32": "^5.0.1",
"bip39": "^3.0.4",
"bip65": "^1.0.3",
"bip68": "^1.0.4",
"bitcoinjs-lib": "^7.0.1",
"cross-env": "^10.1.0",
"ecpair": "^3.0.1",
"jest": "^30.3.0",
"regtest-client": "^0.2.1",
"yargs": "^17.7.2"
},
"dependencies": {
"@bitcoinerlab/miniscript": "^2.0.0",
"lodash.memoize": "^4.1.2",
"uint8array-tools": "^0.0.9",
"varuint-bitcoin": "^2.0.0"
}
}