148 lines
5.5 KiB
JSON
148 lines
5.5 KiB
JSON
{
|
|
"name": "@solana/web3.js",
|
|
"version": "0.0.0-development",
|
|
"description": "Solana Javascript API",
|
|
"keywords": [
|
|
"api",
|
|
"blockchain"
|
|
],
|
|
"license": "MIT",
|
|
"author": "Solana Maintainers <maintainers@solana.com>",
|
|
"homepage": "https://solana.com/",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/solana-labs/solana-web3.js.git"
|
|
},
|
|
"bugs": {
|
|
"url": "http://github.com/solana-labs/solana-web3.js.git/issues"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"main": "lib/index.cjs.js",
|
|
"module": "lib/index.esm.js",
|
|
"types": "lib/index.d.ts",
|
|
"bin": {
|
|
"solana-bpf-sdk-install": "bin/bpf-sdk-install.sh",
|
|
"solana-localnet": "bin/localnet.sh"
|
|
},
|
|
"testnetDefaultChannel": "edge",
|
|
"files": [
|
|
"/bin",
|
|
"/doc",
|
|
"/examples",
|
|
"/bpf-sdk",
|
|
"/lib",
|
|
"/module.flow.js",
|
|
"/src"
|
|
],
|
|
"scripts": {
|
|
"bpf-sdk:install": "npm run clean:fixtures; bin/bpf-sdk-install.sh .",
|
|
"bpf-sdk:remove-symlinks": "find bpf-sdk -type l -print -exec cp {} {}.tmp \\; -exec mv {}.tmp {} \\;",
|
|
"build": "cross-env NODE_ENV=production rollup -c",
|
|
"build:fixtures": "set -ex; ./test/fixtures/noop-c/build.sh; ./test/fixtures/noop-rust/build.sh",
|
|
"clean:fixtures": "make -C examples/bpf-c-noop clean ",
|
|
"clean": "rimraf ./coverage ./lib",
|
|
"codecov": "set -ex; npm run test:cover; cat ./coverage/lcov.info | codecov",
|
|
"dev": "cross-env NODE_ENV=development rollup -c",
|
|
"doc": "set -ex; esdoc; node -p '\"\\nDocumentation coverage: \" + require(\"./doc/coverage.json\").coverage'",
|
|
"defs": "set -ex; flow check-contents < module.flow.js; tsc module.d.ts",
|
|
"doc:watch": "watch 'npm run doc' . --wait=1 --ignoreDirectoryPattern=/doc/",
|
|
"examples": "set -ex; for example in examples/*.js; do node $example; done",
|
|
"flow": "set -ex; flow stop; flow",
|
|
"flow:stop": "flow stop",
|
|
"flow:watch": "flow stop; watch 'flow' . --wait=1 --ignoreDirectoryPattern=/doc/",
|
|
"lint": "set -ex; npm run pretty; eslint . --ext .js,.ts",
|
|
"lint:fix": "npm run pretty:fix && eslint . --fix",
|
|
"lint:watch": "watch 'npm run lint:fix' . --wait=1 --ignoreDirectoryPattern=/doc/",
|
|
"localnet:down": "bin/localnet.sh down",
|
|
"localnet:logs": "bin/localnet.sh logs -f",
|
|
"localnet:up": "bin/localnet.sh up",
|
|
"localnet:update": "bin/localnet.sh update",
|
|
"ok": "run-s lint flow test doc defs",
|
|
"prepare": "run-s clean bpf-sdk:install bpf-sdk:remove-symlinks build",
|
|
"pretty": "prettier --check '{,{examples,src,test}/**/}*.{j,t}s'",
|
|
"pretty:fix": "prettier --write '{,{examples,src,test}/**/}*.{j,t}s'",
|
|
"re": "semantic-release --repository-url git@github.com:solana-labs/solana-web3.js.git",
|
|
"test": "npm run build:fixtures && cross-env NODE_ENV=test jest --useStderr",
|
|
"test:cover": "npm run build:fixtures && cross-env NODE_ENV=test jest --coverage --useStderr",
|
|
"test:live": "npm run build:fixtures && cross-env NODE_ENV=test TEST_LIVE=1 jest --useStderr",
|
|
"test:live-with-test-validator": "start-server-and-test 'solana-test-validator --reset --quiet' http://localhost:8899/health test:live",
|
|
"test:watch": "npm run build:fixtures && cross-env NODE_ENV=test jest --watch --useStderr"
|
|
},
|
|
"jest": {
|
|
"testEnvironment": "./jest-environment"
|
|
},
|
|
"dependencies": {
|
|
"@babel/runtime": "^7.3.1",
|
|
"bn.js": "^5.0.0",
|
|
"bs58": "^4.0.1",
|
|
"buffer": "^6.0.1",
|
|
"buffer-layout": "^1.2.0",
|
|
"crypto-hash": "^1.2.2",
|
|
"esdoc-inject-style-plugin": "^1.0.0",
|
|
"jayson": "^3.0.1",
|
|
"keccak": "^3.0.1",
|
|
"mz": "^2.7.0",
|
|
"node-fetch": "^2.2.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"rpc-websockets": "^7.4.2",
|
|
"secp256k1": "^4.0.2",
|
|
"superstruct": "^0.8.3",
|
|
"tweetnacl": "^1.0.0",
|
|
"ws": "^7.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.3.3",
|
|
"@babel/plugin-proposal-class-properties": "^7.3.3",
|
|
"@babel/plugin-proposal-function-bind": "^7.2.0",
|
|
"@babel/plugin-transform-runtime": "^7.2.0",
|
|
"@babel/preset-env": "^7.3.1",
|
|
"@babel/preset-flow": "^7.0.0",
|
|
"@commitlint/config-conventional": "^11.0.0",
|
|
"@commitlint/travis-cli": "^11.0.0",
|
|
"@solana/spl-token": "^0.0.13",
|
|
"@typescript-eslint/eslint-plugin": "^4.0.0",
|
|
"@typescript-eslint/parser": "^3.10.1",
|
|
"acorn": "^8.0.1",
|
|
"babel-eslint": "10.1.0",
|
|
"babel-plugin-module-resolver": "4.0.0",
|
|
"codecov": "^3.0.4",
|
|
"cross-env": "7.0.3",
|
|
"elfy": "^1.0.0",
|
|
"enzyme": "3.11.0",
|
|
"esdoc": "^1.1.0",
|
|
"esdoc-ecmascript-proposal-plugin": "^1.0.0",
|
|
"esdoc-flow-type-plugin": "^1.1.0",
|
|
"esdoc-importpath-plugin": "^1.0.2",
|
|
"esdoc-standard-plugin": "^1.0.0",
|
|
"eslint": "7.15.0",
|
|
"eslint-config-prettier": "^7.0.0",
|
|
"eslint-plugin-flowtype": "^5.2.0",
|
|
"eslint-plugin-import": "2.22.1",
|
|
"eslint-plugin-jest": "22.19.0",
|
|
"eslint-plugin-prettier": "^3.0.0",
|
|
"flow-bin": "0.130.0",
|
|
"flow-typed": "3.2.1",
|
|
"fs-file-tree": "1.1.1",
|
|
"jest": "26.6.3",
|
|
"marked": "^1.1.0",
|
|
"prettier": "^2.0.0",
|
|
"rimraf": "3.0.2",
|
|
"rollup": "2.35.1",
|
|
"rollup-plugin-babel": "^4.3.2",
|
|
"rollup-plugin-commonjs": "^10.0.0",
|
|
"rollup-plugin-copy": "^3.3.0",
|
|
"rollup-plugin-json": "^4.0.0",
|
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
"rollup-plugin-node-globals": "^1.2.1",
|
|
"rollup-plugin-node-resolve": "5.2.0",
|
|
"rollup-plugin-replace": "2.2.0",
|
|
"rollup-plugin-terser": "^7.0.0",
|
|
"semantic-release": "^17.0.2",
|
|
"start-server-and-test": "^1.11.6",
|
|
"typescript": "^4.0.2",
|
|
"watch": "^1.0.2"
|
|
}
|
|
}
|