Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
74 lines (74 loc) · 3.55 KB
/
Copy pathpackage.json
File metadata and controls
74 lines (74 loc) · 3.55 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
{
"name": "@bitcoinerlab/discovery",
"description": "A TypeScript library for retrieving Bitcoin funds from ranged descriptors, leveraging @bitcoinerlab/explorer for standardized access to multiple blockchain explorers.",
"homepage": "https://github.com/bitcoinerlab/discovery",
"version": "2.0.2",
"author": "Jose-Luis Landabaso",
"license": "MIT",
"prettier": "@bitcoinerlab/configs/prettierConfig.json",
"eslintConfig": {
"extends": "./node_modules/@bitcoinerlab/configs/eslintConfig"
},
"jest": {
"preset": "@bitcoinerlab/configs",
"transform": {
"^.+node_modules/@noble/.+\\.js$": "<rootDir>/jest-esm-transform.cjs"
},
"transformIgnorePatterns": [
"/node_modules/(?!(@bitcoinerlab/secp256k1|@noble)/)"
]
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"webdocs": "typedoc --options ./node_modules/@bitcoinerlab/configs/webtypedoc.json",
"docs": "typedoc --options ./node_modules/@bitcoinerlab/configs/typedoc.json",
"build:src": "tsc --project ./node_modules/@bitcoinerlab/configs/tsconfig.src.json",
"build:test": "tsc --project ./node_modules/@bitcoinerlab/configs/tsconfig.test.json",
"build": "npm run build:src && npm run build:test",
"lint": "./node_modules/@bitcoinerlab/configs/scripts/lint.sh",
"updatelocalexplorer": "cd ../explorer && npm install && npm run build && npm pack && mv *.tgz ../discovery && cd ../discovery && npm uninstall @bitcoinerlab/explorer && npm install ./bitcoinerlab-explorer-*.tgz && rm ./bitcoinerlab-explorer-*.tgz",
"COMMENT_ON_TESTER": "Tests use a fresh temporary container because Discovery fixtures assume no previous transactions for their addresses. Non-default ports avoid conflicts with the persistent tester, which is not reset. The temporary container and its volume are removed after each run.",
"ensureTmpTester": "REGTEST_SERVER_PORT=18080 ELECTRUM_PORT=16401 ESPLORA_PORT=13002 ESPLORA_BLOCK_EXPLORER_PORT=15000 CONTAINER_NAME=bitcoinerlab_tmp_tester_instance ./node_modules/@bitcoinerlab/configs/scripts/ensureTester.sh",
"cleanTmpTester": "CONTAINER_NAME=bitcoinerlab_tmp_tester_instance; container_id=$(docker container ls --all --quiet --filter \"name=^/${CONTAINER_NAME}$\") && if [ -n \"$container_id\" ]; then docker rm --force --volumes \"$container_id\"; fi && volume=$(docker volume ls --quiet --filter \"name=^${CONTAINER_NAME}_data$\") && if [ -n \"$volume\" ]; then docker volume rm \"$volume\"; fi",
"test": "npm run lint && npm run build && npm run test:local",
"test:local": "bash scripts/test-local.sh",
"test:public": "npm run lint && npm run build && jest --runInBand --testMatch '**/*.public.js'",
"prepublishOnly": "rm -rf dist/ && npm test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/bitcoinerlab/discovery.git"
},
"keywords": [
"bitcoin",
"discovery",
"esplora",
"electrum"
],
"bugs": {
"url": "https://github.com/bitcoinerlab/discovery/issues"
},
"files": [
"dist"
],
"dependencies": {
"@bitcoinerlab/descriptors": "^3.2.1",
"@bitcoinerlab/explorer": "^1.0.1",
"@bitcoinerlab/secp256k1": "^2.0.0",
"@types/memoizee": "^0.4.12",
"bitcoinjs-lib": "^7.0.5",
"immer": "^11.2.9",
"lodash.clonedeep": "^4.5.0",
"memoizee": "^0.4.17",
"shallow-equal": "^3.1.0",
"uint8array-tools": "^0.0.10"
},
"devDependencies": {
"@bitcoinerlab/configs": "^2.0.0",
"@bitcoinerlab/miniscript-policies": "^1.1.1",
"@types/lodash.clonedeep": "^4.5.9",
"bip39": "^3.1.2",
"regtest-client": "^0.2.1"
}
}