Browse Source

Clean up scripts and add postinstall for installing via git

fixTypes
junderw 6 years ago
parent
commit
44d88fcfb3
No known key found for this signature in database GPG Key ID: B256185D3A971908
  1. 30
      package.json

30
package.json

@ -3,6 +3,7 @@
"version": "4.0.2", "version": "4.0.2",
"description": "Client-side Bitcoin JavaScript library", "description": "Client-side Bitcoin JavaScript library",
"main": "./dist/src/index.js", "main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"engines": { "engines": {
"node": ">=8.0.0" "node": ">=8.0.0"
}, },
@ -14,14 +15,21 @@
"bitcoinjs" "bitcoinjs"
], ],
"scripts": { "scripts": {
"coverage-report": "nyc report --reporter=lcov", "build": "tsc -d -p ./tsconfig.json",
"coverage-html": "nyc report --reporter=html", "coverage-report": "npm run build && npm run nobuild:coverage-report",
"coverage": "nyc --check-coverage --branches 90 --functions 90 --lines 90 mocha", "coverage-html": "npm run build && npm run nobuild:coverage-html",
"integration": "npm run build && mocha --timeout 50000 test/integration/", "coverage": "npm run build && npm run nobuild:coverage",
"standard": "standard", "integration": "npm run build && npm run nobuild:integration",
"test": "npm run build && npm run standard && npm run coverage", "nobuild:coverage-report": "nyc report --reporter=lcov",
"unit": "npm run build && mocha", "nobuild:coverage-html": "nyc report --reporter=html",
"build": "tsc -d -p tsconfig.json" "nobuild:coverage": "nyc --check-coverage --branches 90 --functions 90 --lines 90 mocha",
"nobuild:integration": "mocha --timeout 50000 test/integration/",
"nobuild:standard": "standard",
"nobuild:unit": "mocha",
"prepare": "npm run build",
"standard": "npm run build && npm run nobuild:standard",
"test": "npm run build && npm run nobuild:standard && npm run nobuild:coverage",
"unit": "npm run build && npm run nobuild:unit"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -31,6 +39,7 @@
"dist/src" "dist/src"
], ],
"dependencies": { "dependencies": {
"@types/node": "^10.12.18",
"bech32": "^1.1.2", "bech32": "^1.1.2",
"bip32": "^1.0.0", "bip32": "^1.0.0",
"bip66": "^1.1.0", "bip66": "^1.1.0",
@ -44,11 +53,11 @@
"safe-buffer": "^5.1.1", "safe-buffer": "^5.1.1",
"tiny-secp256k1": "^1.0.0", "tiny-secp256k1": "^1.0.0",
"typeforce": "^1.11.3", "typeforce": "^1.11.3",
"typescript": "^3.2.2",
"varuint-bitcoin": "^1.0.4", "varuint-bitcoin": "^1.0.4",
"wif": "^2.0.1" "wif": "^2.0.1"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^10.12.18",
"bip39": "^2.3.0", "bip39": "^2.3.0",
"bip65": "^1.0.1", "bip65": "^1.0.1",
"bip68": "^1.0.3", "bip68": "^1.0.3",
@ -60,8 +69,7 @@
"mocha": "^5.2.0", "mocha": "^5.2.0",
"nyc": "^11.8.0", "nyc": "^11.8.0",
"proxyquire": "^2.0.1", "proxyquire": "^2.0.1",
"standard": "^11.0.1", "standard": "^11.0.1"
"typescript": "^3.2.2"
}, },
"license": "MIT" "license": "MIT"
} }

Loading…
Cancel
Save