33 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
  "name": "gbt",
 | 
						|
  "version": "3.0.1",
 | 
						|
  "description": "An efficient re-implementation of the getBlockTemplate algorithm in Rust",
 | 
						|
  "main": "index.js",
 | 
						|
  "types": "index.d.ts",
 | 
						|
  "scripts": {
 | 
						|
    "artifacts": "napi artifacts",
 | 
						|
    "build": "npm install --no-save @napi-rs/cli@2.18.0 && npm run check-cargo-version && napi build --platform",
 | 
						|
    "build-debug": "npm run build",
 | 
						|
    "build-release": "npm run build -- --release --strip",
 | 
						|
    "check-cargo-version": "VER=$(cat rust-toolchain) ; if ! cargo version | grep \"cargo $VER\" >/dev/null ; then echo -e \"\\033[1;35m[[[[WARNING]]]]: cargo version mismatch with ./rust-toolchain version ($VER)!!!\\033[0m\" >&2; fi",
 | 
						|
    "clean": "rm -rf ./target/ ./node_modules/ *.node package-lock.json",
 | 
						|
    "to-backend": "FD=${FD:-../../backend/rust-gbt/} ; rm -rf $FD && mkdir $FD && cp index.js index.d.ts package.json *.node $FD",
 | 
						|
    "prepublishOnly": "napi prepublish -t npm",
 | 
						|
    "test": "cargo test"
 | 
						|
  },
 | 
						|
  "author": "mononaut",
 | 
						|
  "napi": {
 | 
						|
    "name": "gbt",
 | 
						|
    "triples": {
 | 
						|
      "defaults": false,
 | 
						|
      "additional": [
 | 
						|
        "x86_64-unknown-linux-gnu",
 | 
						|
        "x86_64-unknown-freebsd"
 | 
						|
      ]
 | 
						|
    }
 | 
						|
  },
 | 
						|
  "engines": {
 | 
						|
    "node": ">= 12"
 | 
						|
  }
 | 
						|
}
 |