-
Notifications
You must be signed in to change notification settings - Fork 16
/
package.json
124 lines (124 loc) · 4.72 KB
/
package.json
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
{
"name": "@concordium/web-sdk",
"version": "8.1.0",
"license": "Apache-2.0",
"engines": {
"node": ">=16"
},
"repository": {
"type": "git",
"url": "https://github.com/Concordium/concordium-node-sdk-js",
"directory": "packages/sdk"
},
"sideEffects": [
"lib/min/*"
],
"type": "module",
"main": "lib/min/concordium.node.min.js",
"browser": "lib/min/concordium.web.min.js",
"react-native": "lib/min/concordium.react-native.min.js",
"cdn": "lib/min/concordium.web.min.js",
"types": "lib/esm/index.d.ts",
"exports": {
".": {
"types": "./lib/esm/index.d.ts",
"bun": "./src/index.ts",
"default": "./lib/esm/index.js"
},
"./nodejs": {
"types": "./lib/esm/pub/nodejs.d.ts",
"bun": "./src/pub/nodejs.ts",
"react-native": null,
"browser": null,
"default": "./lib/esm/pub/nodejs.js"
},
"./wasm": {
"types": "./lib/esm/pub/wasm.d.ts",
"bun": "./src/pub/wasm.ts",
"react-native": null,
"default": "./lib/esm/pub/wasm.js"
},
"./*": {
"types": "./lib/esm/pub/*.d.ts",
"bun": "./src/pub/*.ts",
"default": "./lib/esm/pub/*.js"
},
"./shims/ed25519": {
"types": "./lib/esm/shims/ed25519/default.d.ts",
"react-native": "./lib/esm/shims/ed25519/react-native.js",
"node": "./lib/esm/shims/ed25519/node.js",
"default": "./lib/esm/shims/ed25519/default.js"
}
},
"files": [
"/src/**/*",
"/lib/esm/**/*",
"/lib/min/**/*"
],
"devDependencies": {
"@protobuf-ts/plugin": "^2.9.1",
"@size-limit/preset-big-lib": "^11.1.4",
"@testing-library/react-native": "^12.3.1",
"@types/bs58check": "^2.1.0",
"@types/jest": "^26.0.23",
"@types/json-bigint": "^1.0.1",
"@types/node": "^20.12.13",
"@types/uuid": "^8.3.4",
"eslint": "8",
"glob": "^10.3.10",
"grpc-tools": "^1.11.2",
"grpc_tools_node_protoc_ts": "5.3.0",
"isomorphic-fetch": "^3.0.0",
"jest": "^29.6.2",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.2.5",
"react-native": "^0.74.1",
"rimraf": "^5.0.1",
"size-limit": "^11.1.4",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
},
"scripts": {
"generate-ts-v2": "yarn run grpc_tools_node_protoc --plugin=protoc-gen-ts=../../node_modules/@protobuf-ts/plugin/bin/protoc-gen-ts --ts_opt 'optimize_code_size' --ts_out=src/grpc-api -I ../../deps/concordium-base/concordium-grpc-api ../../deps/concordium-base/concordium-grpc-api/v2/concordium/*.proto",
"generate": "([ -e \"../../deps/concordium-base/concordium-grpc-api\" ] && yarn generate-ts-v2 && node scripts/proto-node-esm-compat.js src/grpc-api) || echo 'Please checkout submodules before building'",
"lint": "eslint . --cache --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint-fix": "yarn lint --fix",
"prettier": "prettier . --ignore-path ../../.gitignore --ignore-path ../../.prettierignore --ignore-path .gitignore",
"fmt": "yarn prettier --write",
"fmt-check": "yarn prettier --check",
"test": "jest",
"test-rn": "yarn test -c jest.config.react-native.ts",
"test-web": "yarn test -c jest.config.web.ts",
"test-ci": "yarn test ./test/ci && yarn test-rn ./test/ci && yarn test-web ./test/ci",
"build": "yarn clean; mkdir -p src/grpc-api; yarn generate && yarn build-dev",
"build-dev": "tsc -p tsconfig.build.json && yarn webpack",
"webpack": "node --loader ts-node/esm ../../node_modules/.bin/webpack --config webpack.config.ts",
"clean": "rimraf -- lib src/grpc-api",
"size": "yarn build && size-limit",
"size:no-build": "size-limit"
},
"dependencies": {
"@concordium/rust-bindings": "workspace:^",
"@grpc/grpc-js": "^1.9.4",
"@noble/ed25519": "^2.0.0",
"@noble/hashes": "^1.3.2",
"@protobuf-ts/grpc-transport": "^2.9.1",
"@protobuf-ts/grpcweb-transport": "^2.9.1",
"@protobuf-ts/runtime-rpc": "^2.8.2",
"@scure/bip39": "^1.2.1",
"@types/big.js": "^6.2.0",
"big.js": "^6.2.0",
"bs58check": "^3.0.1",
"buffer": "^6.0.3",
"hash.js": "^1.1.7",
"iso-3166-1": "^2.1.1",
"json-bigint": "^1.0.0",
"uuid": "^8.3.2"
},
"peerDependencies": {
"@protobuf-ts/runtime-rpc": "^2.8.2"
}
}